AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ResourceSnapshotSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9#include <aws/partnercentral-selling/model/ResourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PartnerCentralSelling {
21namespace Model {
22
32 public:
33 AWS_PARTNERCENTRALSELLING_API ResourceSnapshotSummary() = default;
34 AWS_PARTNERCENTRALSELLING_API ResourceSnapshotSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALSELLING_API ResourceSnapshotSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
63 inline int GetRevision() const { return m_revision; }
64 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
65 inline void SetRevision(int value) {
66 m_revisionHasBeenSet = true;
67 m_revision = value;
68 }
70 SetRevision(value);
71 return *this;
72 }
74
76
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
96 inline const Aws::String& GetResourceId() const { return m_resourceId; }
97 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
98 template <typename ResourceIdT = Aws::String>
99 void SetResourceId(ResourceIdT&& value) {
100 m_resourceIdHasBeenSet = true;
101 m_resourceId = std::forward<ResourceIdT>(value);
102 }
103 template <typename ResourceIdT = Aws::String>
105 SetResourceId(std::forward<ResourceIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetResourceSnapshotTemplateName() const { return m_resourceSnapshotTemplateName; }
115 inline bool ResourceSnapshotTemplateNameHasBeenSet() const { return m_resourceSnapshotTemplateNameHasBeenSet; }
116 template <typename ResourceSnapshotTemplateNameT = Aws::String>
117 void SetResourceSnapshotTemplateName(ResourceSnapshotTemplateNameT&& value) {
118 m_resourceSnapshotTemplateNameHasBeenSet = true;
119 m_resourceSnapshotTemplateName = std::forward<ResourceSnapshotTemplateNameT>(value);
120 }
121 template <typename ResourceSnapshotTemplateNameT = Aws::String>
122 ResourceSnapshotSummary& WithResourceSnapshotTemplateName(ResourceSnapshotTemplateNameT&& value) {
123 SetResourceSnapshotTemplateName(std::forward<ResourceSnapshotTemplateNameT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
134 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
135 template <typename CreatedByT = Aws::String>
136 void SetCreatedBy(CreatedByT&& value) {
137 m_createdByHasBeenSet = true;
138 m_createdBy = std::forward<CreatedByT>(value);
139 }
140 template <typename CreatedByT = Aws::String>
142 SetCreatedBy(std::forward<CreatedByT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_arn;
148
149 int m_revision{0};
150
151 ResourceType m_resourceType{ResourceType::NOT_SET};
152
153 Aws::String m_resourceId;
154
155 Aws::String m_resourceSnapshotTemplateName;
156
157 Aws::String m_createdBy;
158 bool m_arnHasBeenSet = false;
159 bool m_revisionHasBeenSet = false;
160 bool m_resourceTypeHasBeenSet = false;
161 bool m_resourceIdHasBeenSet = false;
162 bool m_resourceSnapshotTemplateNameHasBeenSet = false;
163 bool m_createdByHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace PartnerCentralSelling
168} // namespace Aws
ResourceSnapshotSummary & WithResourceId(ResourceIdT &&value)
AWS_PARTNERCENTRALSELLING_API ResourceSnapshotSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API ResourceSnapshotSummary()=default
ResourceSnapshotSummary & WithResourceType(ResourceType value)
void SetResourceSnapshotTemplateName(ResourceSnapshotTemplateNameT &&value)
ResourceSnapshotSummary & WithCreatedBy(CreatedByT &&value)
ResourceSnapshotSummary & WithResourceSnapshotTemplateName(ResourceSnapshotTemplateNameT &&value)
AWS_PARTNERCENTRALSELLING_API ResourceSnapshotSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue