AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetResourceSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
9#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
10#include <aws/partnercentral-selling/model/ResourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PartnerCentralSelling {
16namespace Model {
17
21 public:
22 AWS_PARTNERCENTRALSELLING_API GetResourceSnapshotRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetResourceSnapshot"; }
29
30 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
31
32 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
41 inline const Aws::String& GetCatalog() const { return m_catalog; }
42 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
43 template <typename CatalogT = Aws::String>
44 void SetCatalog(CatalogT&& value) {
45 m_catalogHasBeenSet = true;
46 m_catalog = std::forward<CatalogT>(value);
47 }
48 template <typename CatalogT = Aws::String>
50 SetCatalog(std::forward<CatalogT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetEngagementIdentifier() const { return m_engagementIdentifier; }
61 inline bool EngagementIdentifierHasBeenSet() const { return m_engagementIdentifierHasBeenSet; }
62 template <typename EngagementIdentifierT = Aws::String>
63 void SetEngagementIdentifier(EngagementIdentifierT&& value) {
64 m_engagementIdentifierHasBeenSet = true;
65 m_engagementIdentifier = std::forward<EngagementIdentifierT>(value);
66 }
67 template <typename EngagementIdentifierT = Aws::String>
68 GetResourceSnapshotRequest& WithEngagementIdentifier(EngagementIdentifierT&& value) {
69 SetEngagementIdentifier(std::forward<EngagementIdentifierT>(value));
70 return *this;
71 }
73
75
80 inline ResourceType GetResourceType() const { return m_resourceType; }
81 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
82 inline void SetResourceType(ResourceType value) {
83 m_resourceTypeHasBeenSet = true;
84 m_resourceType = value;
85 }
87 SetResourceType(value);
88 return *this;
89 }
91
93
99 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
100 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
101 template <typename ResourceIdentifierT = Aws::String>
102 void SetResourceIdentifier(ResourceIdentifierT&& value) {
103 m_resourceIdentifierHasBeenSet = true;
104 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
105 }
106 template <typename ResourceIdentifierT = Aws::String>
108 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
109 return *this;
110 }
112
114
120 inline const Aws::String& GetResourceSnapshotTemplateIdentifier() const { return m_resourceSnapshotTemplateIdentifier; }
121 inline bool ResourceSnapshotTemplateIdentifierHasBeenSet() const { return m_resourceSnapshotTemplateIdentifierHasBeenSet; }
122 template <typename ResourceSnapshotTemplateIdentifierT = Aws::String>
123 void SetResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT&& value) {
124 m_resourceSnapshotTemplateIdentifierHasBeenSet = true;
125 m_resourceSnapshotTemplateIdentifier = std::forward<ResourceSnapshotTemplateIdentifierT>(value);
126 }
127 template <typename ResourceSnapshotTemplateIdentifierT = Aws::String>
128 GetResourceSnapshotRequest& WithResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT&& value) {
129 SetResourceSnapshotTemplateIdentifier(std::forward<ResourceSnapshotTemplateIdentifierT>(value));
130 return *this;
131 }
133
135
139 inline int GetRevision() const { return m_revision; }
140 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
141 inline void SetRevision(int value) {
142 m_revisionHasBeenSet = true;
143 m_revision = value;
144 }
146 SetRevision(value);
147 return *this;
148 }
150 private:
151 Aws::String m_catalog;
152
153 Aws::String m_engagementIdentifier;
154
155 ResourceType m_resourceType{ResourceType::NOT_SET};
156
157 Aws::String m_resourceIdentifier;
158
159 Aws::String m_resourceSnapshotTemplateIdentifier;
160
161 int m_revision{0};
162 bool m_catalogHasBeenSet = false;
163 bool m_engagementIdentifierHasBeenSet = false;
164 bool m_resourceTypeHasBeenSet = false;
165 bool m_resourceIdentifierHasBeenSet = false;
166 bool m_resourceSnapshotTemplateIdentifierHasBeenSet = false;
167 bool m_revisionHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace PartnerCentralSelling
172} // namespace Aws
AWS_PARTNERCENTRALSELLING_API GetResourceSnapshotRequest()=default
GetResourceSnapshotRequest & WithResourceType(ResourceType value)
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
GetResourceSnapshotRequest & WithEngagementIdentifier(EngagementIdentifierT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetResourceSnapshotRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
GetResourceSnapshotRequest & WithResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT &&value)
void SetResourceSnapshotTemplateIdentifier(ResourceSnapshotTemplateIdentifierT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String