AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetResourceSnapshotResult.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/partnercentral-selling/model/ResourceSnapshotPayload.h>
11#include <aws/partnercentral-selling/model/ResourceType.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace PartnerCentralSelling
27{
28namespace Model
29{
31 {
32 public:
33 AWS_PARTNERCENTRALSELLING_API GetResourceSnapshotResult() = default;
36
37
39
43 inline const Aws::String& GetArn() const { return m_arn; }
44 template<typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
46 template<typename ArnT = Aws::String>
47 GetResourceSnapshotResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
49
51
55 inline const Aws::String& GetCatalog() const { return m_catalog; }
56 template<typename CatalogT = Aws::String>
57 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
58 template<typename CatalogT = Aws::String>
59 GetResourceSnapshotResult& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
61
63
68 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
69 template<typename CreatedAtT = Aws::Utils::DateTime>
70 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
71 template<typename CreatedAtT = Aws::Utils::DateTime>
72 GetResourceSnapshotResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
74
76
80 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
81 template<typename CreatedByT = Aws::String>
82 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
83 template<typename CreatedByT = Aws::String>
84 GetResourceSnapshotResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
86
88
92 inline const Aws::String& GetEngagementId() const { return m_engagementId; }
93 template<typename EngagementIdT = Aws::String>
94 void SetEngagementId(EngagementIdT&& value) { m_engagementIdHasBeenSet = true; m_engagementId = std::forward<EngagementIdT>(value); }
95 template<typename EngagementIdT = Aws::String>
96 GetResourceSnapshotResult& WithEngagementId(EngagementIdT&& value) { SetEngagementId(std::forward<EngagementIdT>(value)); return *this;}
98
100
101 inline const ResourceSnapshotPayload& GetPayload() const { return m_payload; }
102 template<typename PayloadT = ResourceSnapshotPayload>
103 void SetPayload(PayloadT&& value) { m_payloadHasBeenSet = true; m_payload = std::forward<PayloadT>(value); }
104 template<typename PayloadT = ResourceSnapshotPayload>
105 GetResourceSnapshotResult& WithPayload(PayloadT&& value) { SetPayload(std::forward<PayloadT>(value)); return *this;}
107
109
113 inline const Aws::String& GetResourceId() const { return m_resourceId; }
114 template<typename ResourceIdT = Aws::String>
115 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
116 template<typename ResourceIdT = Aws::String>
117 GetResourceSnapshotResult& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
119
121
125 inline const Aws::String& GetResourceSnapshotTemplateName() const { return m_resourceSnapshotTemplateName; }
126 template<typename ResourceSnapshotTemplateNameT = Aws::String>
127 void SetResourceSnapshotTemplateName(ResourceSnapshotTemplateNameT&& value) { m_resourceSnapshotTemplateNameHasBeenSet = true; m_resourceSnapshotTemplateName = std::forward<ResourceSnapshotTemplateNameT>(value); }
128 template<typename ResourceSnapshotTemplateNameT = Aws::String>
129 GetResourceSnapshotResult& WithResourceSnapshotTemplateName(ResourceSnapshotTemplateNameT&& value) { SetResourceSnapshotTemplateName(std::forward<ResourceSnapshotTemplateNameT>(value)); return *this;}
131
133
137 inline ResourceType GetResourceType() const { return m_resourceType; }
138 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
141
143
147 inline int GetRevision() const { return m_revision; }
148 inline void SetRevision(int value) { m_revisionHasBeenSet = true; m_revision = value; }
149 inline GetResourceSnapshotResult& WithRevision(int value) { SetRevision(value); return *this;}
151
153
154 inline const Aws::String& GetRequestId() const { return m_requestId; }
155 template<typename RequestIdT = Aws::String>
156 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
157 template<typename RequestIdT = Aws::String>
158 GetResourceSnapshotResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
160 private:
161
162 Aws::String m_arn;
163 bool m_arnHasBeenSet = false;
164
165 Aws::String m_catalog;
166 bool m_catalogHasBeenSet = false;
167
168 Aws::Utils::DateTime m_createdAt{};
169 bool m_createdAtHasBeenSet = false;
170
171 Aws::String m_createdBy;
172 bool m_createdByHasBeenSet = false;
173
174 Aws::String m_engagementId;
175 bool m_engagementIdHasBeenSet = false;
176
177 ResourceSnapshotPayload m_payload;
178 bool m_payloadHasBeenSet = false;
179
180 Aws::String m_resourceId;
181 bool m_resourceIdHasBeenSet = false;
182
183 Aws::String m_resourceSnapshotTemplateName;
184 bool m_resourceSnapshotTemplateNameHasBeenSet = false;
185
186 ResourceType m_resourceType{ResourceType::NOT_SET};
187 bool m_resourceTypeHasBeenSet = false;
188
189 int m_revision{0};
190 bool m_revisionHasBeenSet = false;
191
192 Aws::String m_requestId;
193 bool m_requestIdHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace PartnerCentralSelling
198} // namespace Aws
GetResourceSnapshotResult & WithCreatedAt(CreatedAtT &&value)
GetResourceSnapshotResult & WithCreatedBy(CreatedByT &&value)
void SetResourceSnapshotTemplateName(ResourceSnapshotTemplateNameT &&value)
GetResourceSnapshotResult & WithResourceSnapshotTemplateName(ResourceSnapshotTemplateNameT &&value)
AWS_PARTNERCENTRALSELLING_API GetResourceSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceSnapshotResult & WithResourceType(ResourceType value)
GetResourceSnapshotResult & WithEngagementId(EngagementIdT &&value)
AWS_PARTNERCENTRALSELLING_API GetResourceSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PARTNERCENTRALSELLING_API GetResourceSnapshotResult()=default
GetResourceSnapshotResult & WithResourceId(ResourceIdT &&value)
GetResourceSnapshotResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue