AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
StartAppAssessmentRequest.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/resiliencehub/ResilienceHubRequest.h>
11#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ResilienceHub {
17namespace Model {
18
22 public:
23 AWS_RESILIENCEHUB_API StartAppAssessmentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "StartAppAssessment"; }
30
31 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
32
34
43 inline const Aws::String& GetAppArn() const { return m_appArn; }
44 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
45 template <typename AppArnT = Aws::String>
46 void SetAppArn(AppArnT&& value) {
47 m_appArnHasBeenSet = true;
48 m_appArn = std::forward<AppArnT>(value);
49 }
50 template <typename AppArnT = Aws::String>
52 SetAppArn(std::forward<AppArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAppVersion() const { return m_appVersion; }
62 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
63 template <typename AppVersionT = Aws::String>
64 void SetAppVersion(AppVersionT&& value) {
65 m_appVersionHasBeenSet = true;
66 m_appVersion = std::forward<AppVersionT>(value);
67 }
68 template <typename AppVersionT = Aws::String>
70 SetAppVersion(std::forward<AppVersionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAssessmentName() const { return m_assessmentName; }
80 inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; }
81 template <typename AssessmentNameT = Aws::String>
82 void SetAssessmentName(AssessmentNameT&& value) {
83 m_assessmentNameHasBeenSet = true;
84 m_assessmentName = std::forward<AssessmentNameT>(value);
85 }
86 template <typename AssessmentNameT = Aws::String>
88 SetAssessmentName(std::forward<AssessmentNameT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::String& GetClientToken() const { return m_clientToken; }
100 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
101 template <typename ClientTokenT = Aws::String>
102 void SetClientToken(ClientTokenT&& value) {
103 m_clientTokenHasBeenSet = true;
104 m_clientToken = std::forward<ClientTokenT>(value);
105 }
106 template <typename ClientTokenT = Aws::String>
108 SetClientToken(std::forward<ClientTokenT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags = std::forward<TagsT>(value);
124 }
125 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 SetTags(std::forward<TagsT>(value));
128 return *this;
129 }
130 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
131 StartAppAssessmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_appArn;
139
140 Aws::String m_appVersion;
141
142 Aws::String m_assessmentName;
143
145
147 bool m_appArnHasBeenSet = false;
148 bool m_appVersionHasBeenSet = false;
149 bool m_assessmentNameHasBeenSet = false;
150 bool m_clientTokenHasBeenSet = true;
151 bool m_tagsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace ResilienceHub
156} // namespace Aws
StartAppAssessmentRequest & WithTags(TagsT &&value)
StartAppAssessmentRequest & WithAppVersion(AppVersionT &&value)
StartAppAssessmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartAppAssessmentRequest & WithAppArn(AppArnT &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
StartAppAssessmentRequest & WithAssessmentName(AssessmentNameT &&value)
AWS_RESILIENCEHUB_API StartAppAssessmentRequest()=default
StartAppAssessmentRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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