AWS SDK for C++

AWS SDK for C++ Version 1.11.818

Loading...
Searching...
No Matches
ImportAppRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resiliencehubv2/Resiliencehubv2Request.h>
12#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
13#include <aws/resiliencehubv2/model/AssociatedSystem.h>
14
15#include <utility>
16
17namespace Aws {
18namespace resiliencehubv2 {
19namespace Model {
20
24 public:
25 AWS_RESILIENCEHUBV2_API ImportAppRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ImportApp"; }
32
33 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
34
36
37 inline const Aws::String& GetV1AppArn() const { return m_v1AppArn; }
38 inline bool V1AppArnHasBeenSet() const { return m_v1AppArnHasBeenSet; }
39 template <typename V1AppArnT = Aws::String>
40 void SetV1AppArn(V1AppArnT&& value) {
41 m_v1AppArnHasBeenSet = true;
42 m_v1AppArn = std::forward<V1AppArnT>(value);
43 }
44 template <typename V1AppArnT = Aws::String>
45 ImportAppRequest& WithV1AppArn(V1AppArnT&& value) {
46 SetV1AppArn(std::forward<V1AppArnT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
54 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
55 template <typename PolicyArnT = Aws::String>
56 void SetPolicyArn(PolicyArnT&& value) {
57 m_policyArnHasBeenSet = true;
58 m_policyArn = std::forward<PolicyArnT>(value);
59 }
60 template <typename PolicyArnT = Aws::String>
61 ImportAppRequest& WithPolicyArn(PolicyArnT&& value) {
62 SetPolicyArn(std::forward<PolicyArnT>(value));
63 return *this;
64 }
66
68
69 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
70 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
71 template <typename KmsKeyIdT = Aws::String>
72 void SetKmsKeyId(KmsKeyIdT&& value) {
73 m_kmsKeyIdHasBeenSet = true;
74 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
75 }
76 template <typename KmsKeyIdT = Aws::String>
77 ImportAppRequest& WithKmsKeyId(KmsKeyIdT&& value) {
78 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
79 return *this;
80 }
82
84
87 inline bool GetSkipManuallyAddedResources() const { return m_skipManuallyAddedResources; }
88 inline bool SkipManuallyAddedResourcesHasBeenSet() const { return m_skipManuallyAddedResourcesHasBeenSet; }
89 inline void SetSkipManuallyAddedResources(bool value) {
90 m_skipManuallyAddedResourcesHasBeenSet = true;
91 m_skipManuallyAddedResources = value;
92 }
95 return *this;
96 }
98
100
103 inline const Aws::Vector<AssociatedSystem>& GetAssociatedSystems() const { return m_associatedSystems; }
104 inline bool AssociatedSystemsHasBeenSet() const { return m_associatedSystemsHasBeenSet; }
105 template <typename AssociatedSystemsT = Aws::Vector<AssociatedSystem>>
106 void SetAssociatedSystems(AssociatedSystemsT&& value) {
107 m_associatedSystemsHasBeenSet = true;
108 m_associatedSystems = std::forward<AssociatedSystemsT>(value);
109 }
110 template <typename AssociatedSystemsT = Aws::Vector<AssociatedSystem>>
111 ImportAppRequest& WithAssociatedSystems(AssociatedSystemsT&& value) {
112 SetAssociatedSystems(std::forward<AssociatedSystemsT>(value));
113 return *this;
114 }
115 template <typename AssociatedSystemsT = AssociatedSystem>
116 ImportAppRequest& AddAssociatedSystems(AssociatedSystemsT&& value) {
117 m_associatedSystemsHasBeenSet = true;
118 m_associatedSystems.emplace_back(std::forward<AssociatedSystemsT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 void SetTags(TagsT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags = std::forward<TagsT>(value);
131 }
132 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 ImportAppRequest& WithTags(TagsT&& value) {
134 SetTags(std::forward<TagsT>(value));
135 return *this;
136 }
137 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
138 ImportAppRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
141 return *this;
142 }
144
146
147 inline const Aws::String& GetClientToken() const { return m_clientToken; }
148 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
149 template <typename ClientTokenT = Aws::String>
150 void SetClientToken(ClientTokenT&& value) {
151 m_clientTokenHasBeenSet = true;
152 m_clientToken = std::forward<ClientTokenT>(value);
153 }
154 template <typename ClientTokenT = Aws::String>
155 ImportAppRequest& WithClientToken(ClientTokenT&& value) {
156 SetClientToken(std::forward<ClientTokenT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_v1AppArn;
162
163 Aws::String m_policyArn;
164
165 Aws::String m_kmsKeyId;
166
167 bool m_skipManuallyAddedResources{false};
168
169 Aws::Vector<AssociatedSystem> m_associatedSystems;
170
172
174 bool m_v1AppArnHasBeenSet = false;
175 bool m_policyArnHasBeenSet = false;
176 bool m_kmsKeyIdHasBeenSet = false;
177 bool m_skipManuallyAddedResourcesHasBeenSet = false;
178 bool m_associatedSystemsHasBeenSet = false;
179 bool m_tagsHasBeenSet = false;
180 bool m_clientTokenHasBeenSet = true;
181};
182
183} // namespace Model
184} // namespace resiliencehubv2
185} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_RESILIENCEHUBV2_API ImportAppRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportAppRequest & WithPolicyArn(PolicyArnT &&value)
ImportAppRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
void SetAssociatedSystems(AssociatedSystemsT &&value)
ImportAppRequest & WithClientToken(ClientTokenT &&value)
ImportAppRequest & WithSkipManuallyAddedResources(bool value)
ImportAppRequest & WithKmsKeyId(KmsKeyIdT &&value)
ImportAppRequest & WithV1AppArn(V1AppArnT &&value)
ImportAppRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
ImportAppRequest & AddAssociatedSystems(AssociatedSystemsT &&value)
const Aws::Vector< AssociatedSystem > & GetAssociatedSystems() const
ImportAppRequest & WithAssociatedSystems(AssociatedSystemsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector