AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ResourceSnapshotSummary.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/partnercentral-selling/model/ResourceType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PartnerCentralSelling
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_PARTNERCENTRALSELLING_API ResourceSnapshotSummary() = default;
39 AWS_PARTNERCENTRALSELLING_API ResourceSnapshotSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PARTNERCENTRALSELLING_API ResourceSnapshotSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 ResourceSnapshotSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
56
58
62 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
63 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
64 template<typename CreatedByT = Aws::String>
65 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
66 template<typename CreatedByT = Aws::String>
67 ResourceSnapshotSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
69
71
75 inline const Aws::String& GetResourceId() const { return m_resourceId; }
76 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
77 template<typename ResourceIdT = Aws::String>
78 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
79 template<typename ResourceIdT = Aws::String>
80 ResourceSnapshotSummary& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
82
84
87 inline const Aws::String& GetResourceSnapshotTemplateName() const { return m_resourceSnapshotTemplateName; }
88 inline bool ResourceSnapshotTemplateNameHasBeenSet() const { return m_resourceSnapshotTemplateNameHasBeenSet; }
89 template<typename ResourceSnapshotTemplateNameT = Aws::String>
90 void SetResourceSnapshotTemplateName(ResourceSnapshotTemplateNameT&& value) { m_resourceSnapshotTemplateNameHasBeenSet = true; m_resourceSnapshotTemplateName = std::forward<ResourceSnapshotTemplateNameT>(value); }
91 template<typename ResourceSnapshotTemplateNameT = Aws::String>
92 ResourceSnapshotSummary& WithResourceSnapshotTemplateName(ResourceSnapshotTemplateNameT&& value) { SetResourceSnapshotTemplateName(std::forward<ResourceSnapshotTemplateNameT>(value)); return *this;}
94
96
99 inline ResourceType GetResourceType() const { return m_resourceType; }
100 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
101 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
104
106
111 inline int GetRevision() const { return m_revision; }
112 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
113 inline void SetRevision(int value) { m_revisionHasBeenSet = true; m_revision = value; }
114 inline ResourceSnapshotSummary& WithRevision(int value) { SetRevision(value); return *this;}
116 private:
117
118 Aws::String m_arn;
119 bool m_arnHasBeenSet = false;
120
121 Aws::String m_createdBy;
122 bool m_createdByHasBeenSet = false;
123
124 Aws::String m_resourceId;
125 bool m_resourceIdHasBeenSet = false;
126
127 Aws::String m_resourceSnapshotTemplateName;
128 bool m_resourceSnapshotTemplateNameHasBeenSet = false;
129
130 ResourceType m_resourceType{ResourceType::NOT_SET};
131 bool m_resourceTypeHasBeenSet = false;
132
133 int m_revision{0};
134 bool m_revisionHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace PartnerCentralSelling
139} // 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