AWS SDK for C++

AWS SDK for C++ Version 1.11.819

Loading...
Searching...
No Matches
ResourceConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/EksSource.h>
11#include <aws/resiliencehubv2/model/ResourceTag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace resiliencehubv2 {
23namespace Model {
24
32 public:
33 AWS_RESILIENCEHUBV2_API ResourceConfiguration() = default;
34 AWS_RESILIENCEHUBV2_API ResourceConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESILIENCEHUBV2_API ResourceConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
43 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
44 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
45 void SetResourceTags(ResourceTagsT&& value) {
46 m_resourceTagsHasBeenSet = true;
47 m_resourceTags = std::forward<ResourceTagsT>(value);
48 }
49 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
50 ResourceConfiguration& WithResourceTags(ResourceTagsT&& value) {
51 SetResourceTags(std::forward<ResourceTagsT>(value));
52 return *this;
53 }
54 template <typename ResourceTagsT = ResourceTag>
55 ResourceConfiguration& AddResourceTags(ResourceTagsT&& value) {
56 m_resourceTagsHasBeenSet = true;
57 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
58 return *this;
59 }
61
63
64 inline const Aws::String& GetCfnStackArn() const { return m_cfnStackArn; }
65 inline bool CfnStackArnHasBeenSet() const { return m_cfnStackArnHasBeenSet; }
66 template <typename CfnStackArnT = Aws::String>
67 void SetCfnStackArn(CfnStackArnT&& value) {
68 m_cfnStackArnHasBeenSet = true;
69 m_cfnStackArn = std::forward<CfnStackArnT>(value);
70 }
71 template <typename CfnStackArnT = Aws::String>
72 ResourceConfiguration& WithCfnStackArn(CfnStackArnT&& value) {
73 SetCfnStackArn(std::forward<CfnStackArnT>(value));
74 return *this;
75 }
77
79
80 inline const Aws::String& GetTfStateFileUrl() const { return m_tfStateFileUrl; }
81 inline bool TfStateFileUrlHasBeenSet() const { return m_tfStateFileUrlHasBeenSet; }
82 template <typename TfStateFileUrlT = Aws::String>
83 void SetTfStateFileUrl(TfStateFileUrlT&& value) {
84 m_tfStateFileUrlHasBeenSet = true;
85 m_tfStateFileUrl = std::forward<TfStateFileUrlT>(value);
86 }
87 template <typename TfStateFileUrlT = Aws::String>
88 ResourceConfiguration& WithTfStateFileUrl(TfStateFileUrlT&& value) {
89 SetTfStateFileUrl(std::forward<TfStateFileUrlT>(value));
90 return *this;
91 }
93
95
98 inline const EksSource& GetEks() const { return m_eks; }
99 inline bool EksHasBeenSet() const { return m_eksHasBeenSet; }
100 template <typename EksT = EksSource>
101 void SetEks(EksT&& value) {
102 m_eksHasBeenSet = true;
103 m_eks = std::forward<EksT>(value);
104 }
105 template <typename EksT = EksSource>
107 SetEks(std::forward<EksT>(value));
108 return *this;
109 }
111
113
114 inline const Aws::String& GetDesignFileS3Url() const { return m_designFileS3Url; }
115 inline bool DesignFileS3UrlHasBeenSet() const { return m_designFileS3UrlHasBeenSet; }
116 template <typename DesignFileS3UrlT = Aws::String>
117 void SetDesignFileS3Url(DesignFileS3UrlT&& value) {
118 m_designFileS3UrlHasBeenSet = true;
119 m_designFileS3Url = std::forward<DesignFileS3UrlT>(value);
120 }
121 template <typename DesignFileS3UrlT = Aws::String>
122 ResourceConfiguration& WithDesignFileS3Url(DesignFileS3UrlT&& value) {
123 SetDesignFileS3Url(std::forward<DesignFileS3UrlT>(value));
124 return *this;
125 }
127 private:
128 Aws::Vector<ResourceTag> m_resourceTags;
129
130 Aws::String m_cfnStackArn;
131
132 Aws::String m_tfStateFileUrl;
133
134 EksSource m_eks;
135
136 Aws::String m_designFileS3Url;
137 bool m_resourceTagsHasBeenSet = false;
138 bool m_cfnStackArnHasBeenSet = false;
139 bool m_tfStateFileUrlHasBeenSet = false;
140 bool m_eksHasBeenSet = false;
141 bool m_designFileS3UrlHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace resiliencehubv2
146} // namespace Aws
AWS_RESILIENCEHUBV2_API ResourceConfiguration()=default
ResourceConfiguration & AddResourceTags(ResourceTagsT &&value)
ResourceConfiguration & WithResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceConfiguration & WithDesignFileS3Url(DesignFileS3UrlT &&value)
ResourceConfiguration & WithTfStateFileUrl(TfStateFileUrlT &&value)
AWS_RESILIENCEHUBV2_API ResourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API ResourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
ResourceConfiguration & WithCfnStackArn(CfnStackArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue