AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateResourceSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
10#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
11#include <aws/partnercentral-selling/model/ResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PartnerCentralSelling {
17namespace Model {
18
22 public:
23 AWS_PARTNERCENTRALSELLING_API CreateResourceSnapshotRequest() = 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 "CreateResourceSnapshot"; }
30
31 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
32
33 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::String& GetCatalog() const { return m_catalog; }
41 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
42 template <typename CatalogT = Aws::String>
43 void SetCatalog(CatalogT&& value) {
44 m_catalogHasBeenSet = true;
45 m_catalog = std::forward<CatalogT>(value);
46 }
47 template <typename CatalogT = Aws::String>
49 SetCatalog(std::forward<CatalogT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetEngagementIdentifier() const { return m_engagementIdentifier; }
60 inline bool EngagementIdentifierHasBeenSet() const { return m_engagementIdentifierHasBeenSet; }
61 template <typename EngagementIdentifierT = Aws::String>
62 void SetEngagementIdentifier(EngagementIdentifierT&& value) {
63 m_engagementIdentifierHasBeenSet = true;
64 m_engagementIdentifier = std::forward<EngagementIdentifierT>(value);
65 }
66 template <typename EngagementIdentifierT = Aws::String>
68 SetEngagementIdentifier(std::forward<EngagementIdentifierT>(value));
69 return *this;
70 }
72
74
79 inline ResourceType GetResourceType() const { return m_resourceType; }
80 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
81 inline void SetResourceType(ResourceType value) {
82 m_resourceTypeHasBeenSet = true;
83 m_resourceType = value;
84 }
86 SetResourceType(value);
87 return *this;
88 }
90
92
98 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
99 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
100 template <typename ResourceIdentifierT = Aws::String>
101 void SetResourceIdentifier(ResourceIdentifierT&& value) {
102 m_resourceIdentifierHasBeenSet = true;
103 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
104 }
105 template <typename ResourceIdentifierT = Aws::String>
107 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
108 return *this;
109 }
111
113
119 inline const Aws::String& GetResourceSnapshotTemplateIdentifier() const { return m_resourceSnapshotTemplateIdentifier; }
120 inline bool ResourceSnapshotTemplateIdentifierHasBeenSet() const { return m_resourceSnapshotTemplateIdentifierHasBeenSet; }
121 template <typename ResourceSnapshotTemplateIdentifierT = Aws::String>
122 void SetResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT&& value) {
123 m_resourceSnapshotTemplateIdentifierHasBeenSet = true;
124 m_resourceSnapshotTemplateIdentifier = std::forward<ResourceSnapshotTemplateIdentifierT>(value);
125 }
126 template <typename ResourceSnapshotTemplateIdentifierT = Aws::String>
127 CreateResourceSnapshotRequest& WithResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT&& value) {
128 SetResourceSnapshotTemplateIdentifier(std::forward<ResourceSnapshotTemplateIdentifierT>(value));
129 return *this;
130 }
132
134
139 inline const Aws::String& GetClientToken() const { return m_clientToken; }
140 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
141 template <typename ClientTokenT = Aws::String>
142 void SetClientToken(ClientTokenT&& value) {
143 m_clientTokenHasBeenSet = true;
144 m_clientToken = std::forward<ClientTokenT>(value);
145 }
146 template <typename ClientTokenT = Aws::String>
148 SetClientToken(std::forward<ClientTokenT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_catalog;
154
155 Aws::String m_engagementIdentifier;
156
157 ResourceType m_resourceType{ResourceType::NOT_SET};
158
159 Aws::String m_resourceIdentifier;
160
161 Aws::String m_resourceSnapshotTemplateIdentifier;
162
164 bool m_catalogHasBeenSet = false;
165 bool m_engagementIdentifierHasBeenSet = false;
166 bool m_resourceTypeHasBeenSet = false;
167 bool m_resourceIdentifierHasBeenSet = false;
168 bool m_resourceSnapshotTemplateIdentifierHasBeenSet = false;
169 bool m_clientTokenHasBeenSet = true;
170};
171
172} // namespace Model
173} // namespace PartnerCentralSelling
174} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
CreateResourceSnapshotRequest & WithClientToken(ClientTokenT &&value)
CreateResourceSnapshotRequest & WithResourceType(ResourceType value)
AWS_PARTNERCENTRALSELLING_API CreateResourceSnapshotRequest()=default
void SetResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateResourceSnapshotRequest & WithResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT &&value)
CreateResourceSnapshotRequest & WithEngagementIdentifier(EngagementIdentifierT &&value)
CreateResourceSnapshotRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String