AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
Assertion.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/AssertionSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace resiliencehubv2 {
22namespace Model {
23
30class Assertion {
31 public:
32 AWS_RESILIENCEHUBV2_API Assertion() = default;
33 AWS_RESILIENCEHUBV2_API Assertion(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API Assertion& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
40 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
41 template <typename ServiceArnT = Aws::String>
42 void SetServiceArn(ServiceArnT&& value) {
43 m_serviceArnHasBeenSet = true;
44 m_serviceArn = std::forward<ServiceArnT>(value);
45 }
46 template <typename ServiceArnT = Aws::String>
47 Assertion& WithServiceArn(ServiceArnT&& value) {
48 SetServiceArn(std::forward<ServiceArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAssertionId() const { return m_assertionId; }
58 inline bool AssertionIdHasBeenSet() const { return m_assertionIdHasBeenSet; }
59 template <typename AssertionIdT = Aws::String>
60 void SetAssertionId(AssertionIdT&& value) {
61 m_assertionIdHasBeenSet = true;
62 m_assertionId = std::forward<AssertionIdT>(value);
63 }
64 template <typename AssertionIdT = Aws::String>
65 Assertion& WithAssertionId(AssertionIdT&& value) {
66 SetAssertionId(std::forward<AssertionIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetText() const { return m_text; }
76 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
77 template <typename TextT = Aws::String>
78 void SetText(TextT&& value) {
79 m_textHasBeenSet = true;
80 m_text = std::forward<TextT>(value);
81 }
82 template <typename TextT = Aws::String>
83 Assertion& WithText(TextT&& value) {
84 SetText(std::forward<TextT>(value));
85 return *this;
86 }
88
90
94 inline AssertionSource GetSource() const { return m_source; }
95 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
96 inline void SetSource(AssertionSource value) {
97 m_sourceHasBeenSet = true;
98 m_source = value;
99 }
101 SetSource(value);
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
111 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 void SetCreatedAt(CreatedAtT&& value) {
114 m_createdAtHasBeenSet = true;
115 m_createdAt = std::forward<CreatedAtT>(value);
116 }
117 template <typename CreatedAtT = Aws::Utils::DateTime>
118 Assertion& WithCreatedAt(CreatedAtT&& value) {
119 SetCreatedAt(std::forward<CreatedAtT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
129 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
130 template <typename UpdatedAtT = Aws::Utils::DateTime>
131 void SetUpdatedAt(UpdatedAtT&& value) {
132 m_updatedAtHasBeenSet = true;
133 m_updatedAt = std::forward<UpdatedAtT>(value);
134 }
135 template <typename UpdatedAtT = Aws::Utils::DateTime>
136 Assertion& WithUpdatedAt(UpdatedAtT&& value) {
137 SetUpdatedAt(std::forward<UpdatedAtT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_serviceArn;
143
144 Aws::String m_assertionId;
145
146 Aws::String m_text;
147
149
150 Aws::Utils::DateTime m_createdAt{};
151
152 Aws::Utils::DateTime m_updatedAt{};
153 bool m_serviceArnHasBeenSet = false;
154 bool m_assertionIdHasBeenSet = false;
155 bool m_textHasBeenSet = false;
156 bool m_sourceHasBeenSet = false;
157 bool m_createdAtHasBeenSet = false;
158 bool m_updatedAtHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace resiliencehubv2
163} // namespace Aws
void SetUpdatedAt(UpdatedAtT &&value)
Definition Assertion.h:131
Assertion & WithCreatedAt(CreatedAtT &&value)
Definition Assertion.h:118
void SetCreatedAt(CreatedAtT &&value)
Definition Assertion.h:113
Assertion & WithText(TextT &&value)
Definition Assertion.h:83
const Aws::String & GetServiceArn() const
Definition Assertion.h:39
AWS_RESILIENCEHUBV2_API Assertion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API Assertion()=default
Assertion & WithSource(AssertionSource value)
Definition Assertion.h:100
Assertion & WithServiceArn(ServiceArnT &&value)
Definition Assertion.h:47
void SetAssertionId(AssertionIdT &&value)
Definition Assertion.h:60
Assertion & WithUpdatedAt(UpdatedAtT &&value)
Definition Assertion.h:136
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Assertion.h:128
AWS_RESILIENCEHUBV2_API Assertion(Aws::Utils::Json::JsonView jsonValue)
void SetSource(AssertionSource value)
Definition Assertion.h:96
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Assertion.h:110
const Aws::String & GetText() const
Definition Assertion.h:75
void SetServiceArn(ServiceArnT &&value)
Definition Assertion.h:42
const Aws::String & GetAssertionId() const
Definition Assertion.h:57
Assertion & WithAssertionId(AssertionIdT &&value)
Definition Assertion.h:65
AssertionSource GetSource() const
Definition Assertion.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue