AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
ReleaseSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
29 public:
30 AWS_WAFV2_API ReleaseSummary() = default;
33 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetReleaseVersion() const { return m_releaseVersion; }
40 inline bool ReleaseVersionHasBeenSet() const { return m_releaseVersionHasBeenSet; }
41 template <typename ReleaseVersionT = Aws::String>
42 void SetReleaseVersion(ReleaseVersionT&& value) {
43 m_releaseVersionHasBeenSet = true;
44 m_releaseVersion = std::forward<ReleaseVersionT>(value);
45 }
46 template <typename ReleaseVersionT = Aws::String>
47 ReleaseSummary& WithReleaseVersion(ReleaseVersionT&& value) {
48 SetReleaseVersion(std::forward<ReleaseVersionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
58 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
59 template <typename TimestampT = Aws::Utils::DateTime>
60 void SetTimestamp(TimestampT&& value) {
61 m_timestampHasBeenSet = true;
62 m_timestamp = std::forward<TimestampT>(value);
63 }
64 template <typename TimestampT = Aws::Utils::DateTime>
65 ReleaseSummary& WithTimestamp(TimestampT&& value) {
66 SetTimestamp(std::forward<TimestampT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_releaseVersion;
72
73 Aws::Utils::DateTime m_timestamp{};
74 bool m_releaseVersionHasBeenSet = false;
75 bool m_timestampHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace WAFV2
80} // namespace Aws
AWS_WAFV2_API ReleaseSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ReleaseSummary & WithTimestamp(TimestampT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
void SetReleaseVersion(ReleaseVersionT &&value)
const Aws::String & GetReleaseVersion() const
AWS_WAFV2_API ReleaseSummary()=default
AWS_WAFV2_API ReleaseSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
ReleaseSummary & WithReleaseVersion(ReleaseVersionT &&value)
void SetTimestamp(TimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue