AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
InputSourceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
11#include <aws/resiliencehubv2/model/EksSource.h>
12#include <aws/resiliencehubv2/model/InputSourceType.h>
13#include <aws/resiliencehubv2/model/ResourceTag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace resiliencehubv2 {
25namespace Model {
26
34 public:
35 AWS_RESILIENCEHUBV2_API InputSourceSummary() = default;
36 AWS_RESILIENCEHUBV2_API InputSourceSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUBV2_API InputSourceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetInputSourceId() const { return m_inputSourceId; }
45 inline bool InputSourceIdHasBeenSet() const { return m_inputSourceIdHasBeenSet; }
46 template <typename InputSourceIdT = Aws::String>
47 void SetInputSourceId(InputSourceIdT&& value) {
48 m_inputSourceIdHasBeenSet = true;
49 m_inputSourceId = std::forward<InputSourceIdT>(value);
50 }
51 template <typename InputSourceIdT = Aws::String>
52 InputSourceSummary& WithInputSourceId(InputSourceIdT&& value) {
53 SetInputSourceId(std::forward<InputSourceIdT>(value));
54 return *this;
55 }
57
59
62 inline InputSourceType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(InputSourceType value) {
65 m_typeHasBeenSet = true;
66 m_type = value;
67 }
69 SetType(value);
70 return *this;
71 }
73
75
78 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
79 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
80 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
81 void SetResourceTags(ResourceTagsT&& value) {
82 m_resourceTagsHasBeenSet = true;
83 m_resourceTags = std::forward<ResourceTagsT>(value);
84 }
85 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
86 InputSourceSummary& WithResourceTags(ResourceTagsT&& value) {
87 SetResourceTags(std::forward<ResourceTagsT>(value));
88 return *this;
89 }
90 template <typename ResourceTagsT = ResourceTag>
91 InputSourceSummary& AddResourceTags(ResourceTagsT&& value) {
92 m_resourceTagsHasBeenSet = true;
93 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetCfnStackArn() const { return m_cfnStackArn; }
101 inline bool CfnStackArnHasBeenSet() const { return m_cfnStackArnHasBeenSet; }
102 template <typename CfnStackArnT = Aws::String>
103 void SetCfnStackArn(CfnStackArnT&& value) {
104 m_cfnStackArnHasBeenSet = true;
105 m_cfnStackArn = std::forward<CfnStackArnT>(value);
106 }
107 template <typename CfnStackArnT = Aws::String>
108 InputSourceSummary& WithCfnStackArn(CfnStackArnT&& value) {
109 SetCfnStackArn(std::forward<CfnStackArnT>(value));
110 return *this;
111 }
113
115
116 inline const Aws::String& GetTfStateFileUrl() const { return m_tfStateFileUrl; }
117 inline bool TfStateFileUrlHasBeenSet() const { return m_tfStateFileUrlHasBeenSet; }
118 template <typename TfStateFileUrlT = Aws::String>
119 void SetTfStateFileUrl(TfStateFileUrlT&& value) {
120 m_tfStateFileUrlHasBeenSet = true;
121 m_tfStateFileUrl = std::forward<TfStateFileUrlT>(value);
122 }
123 template <typename TfStateFileUrlT = Aws::String>
124 InputSourceSummary& WithTfStateFileUrl(TfStateFileUrlT&& value) {
125 SetTfStateFileUrl(std::forward<TfStateFileUrlT>(value));
126 return *this;
127 }
129
131
134 inline const EksSource& GetEks() const { return m_eks; }
135 inline bool EksHasBeenSet() const { return m_eksHasBeenSet; }
136 template <typename EksT = EksSource>
137 void SetEks(EksT&& value) {
138 m_eksHasBeenSet = true;
139 m_eks = std::forward<EksT>(value);
140 }
141 template <typename EksT = EksSource>
143 SetEks(std::forward<EksT>(value));
144 return *this;
145 }
147
149
150 inline const Aws::String& GetDesignFileS3Url() const { return m_designFileS3Url; }
151 inline bool DesignFileS3UrlHasBeenSet() const { return m_designFileS3UrlHasBeenSet; }
152 template <typename DesignFileS3UrlT = Aws::String>
153 void SetDesignFileS3Url(DesignFileS3UrlT&& value) {
154 m_designFileS3UrlHasBeenSet = true;
155 m_designFileS3Url = std::forward<DesignFileS3UrlT>(value);
156 }
157 template <typename DesignFileS3UrlT = Aws::String>
158 InputSourceSummary& WithDesignFileS3Url(DesignFileS3UrlT&& value) {
159 SetDesignFileS3Url(std::forward<DesignFileS3UrlT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
169 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
170 template <typename CreatedAtT = Aws::Utils::DateTime>
171 void SetCreatedAt(CreatedAtT&& value) {
172 m_createdAtHasBeenSet = true;
173 m_createdAt = std::forward<CreatedAtT>(value);
174 }
175 template <typename CreatedAtT = Aws::Utils::DateTime>
176 InputSourceSummary& WithCreatedAt(CreatedAtT&& value) {
177 SetCreatedAt(std::forward<CreatedAtT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_inputSourceId;
183
185
186 Aws::Vector<ResourceTag> m_resourceTags;
187
188 Aws::String m_cfnStackArn;
189
190 Aws::String m_tfStateFileUrl;
191
192 EksSource m_eks;
193
194 Aws::String m_designFileS3Url;
195
196 Aws::Utils::DateTime m_createdAt{};
197 bool m_inputSourceIdHasBeenSet = false;
198 bool m_typeHasBeenSet = false;
199 bool m_resourceTagsHasBeenSet = false;
200 bool m_cfnStackArnHasBeenSet = false;
201 bool m_tfStateFileUrlHasBeenSet = false;
202 bool m_eksHasBeenSet = false;
203 bool m_designFileS3UrlHasBeenSet = false;
204 bool m_createdAtHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace resiliencehubv2
209} // namespace Aws
InputSourceSummary & WithInputSourceId(InputSourceIdT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
InputSourceSummary & AddResourceTags(ResourceTagsT &&value)
AWS_RESILIENCEHUBV2_API InputSourceSummary()=default
const Aws::Utils::DateTime & GetCreatedAt() const
InputSourceSummary & WithType(InputSourceType value)
InputSourceSummary & WithTfStateFileUrl(TfStateFileUrlT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
InputSourceSummary & WithCreatedAt(CreatedAtT &&value)
InputSourceSummary & WithDesignFileS3Url(DesignFileS3UrlT &&value)
AWS_RESILIENCEHUBV2_API InputSourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
InputSourceSummary & WithCfnStackArn(CfnStackArnT &&value)
InputSourceSummary & WithResourceTags(ResourceTagsT &&value)
AWS_RESILIENCEHUBV2_API InputSourceSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue