AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
Attachment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
11#include <aws/globalaccelerator/model/Resource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GlobalAccelerator {
23namespace Model {
24
34 public:
35 AWS_GLOBALACCELERATOR_API Attachment() = default;
36 AWS_GLOBALACCELERATOR_API Attachment(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLOBALACCELERATOR_API Attachment& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetAttachmentArn() const { return m_attachmentArn; }
45 inline bool AttachmentArnHasBeenSet() const { return m_attachmentArnHasBeenSet; }
46 template <typename AttachmentArnT = Aws::String>
47 void SetAttachmentArn(AttachmentArnT&& value) {
48 m_attachmentArnHasBeenSet = true;
49 m_attachmentArn = std::forward<AttachmentArnT>(value);
50 }
51 template <typename AttachmentArnT = Aws::String>
52 Attachment& WithAttachmentArn(AttachmentArnT&& value) {
53 SetAttachmentArn(std::forward<AttachmentArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 Attachment& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<Aws::String>& GetPrincipals() const { return m_principals; }
81 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
82 template <typename PrincipalsT = Aws::Vector<Aws::String>>
83 void SetPrincipals(PrincipalsT&& value) {
84 m_principalsHasBeenSet = true;
85 m_principals = std::forward<PrincipalsT>(value);
86 }
87 template <typename PrincipalsT = Aws::Vector<Aws::String>>
88 Attachment& WithPrincipals(PrincipalsT&& value) {
89 SetPrincipals(std::forward<PrincipalsT>(value));
90 return *this;
91 }
92 template <typename PrincipalsT = Aws::String>
93 Attachment& AddPrincipals(PrincipalsT&& value) {
94 m_principalsHasBeenSet = true;
95 m_principals.emplace_back(std::forward<PrincipalsT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Vector<Resource>& GetResources() const { return m_resources; }
105 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
106 template <typename ResourcesT = Aws::Vector<Resource>>
107 void SetResources(ResourcesT&& value) {
108 m_resourcesHasBeenSet = true;
109 m_resources = std::forward<ResourcesT>(value);
110 }
111 template <typename ResourcesT = Aws::Vector<Resource>>
112 Attachment& WithResources(ResourcesT&& value) {
113 SetResources(std::forward<ResourcesT>(value));
114 return *this;
115 }
116 template <typename ResourcesT = Resource>
117 Attachment& AddResources(ResourcesT&& value) {
118 m_resourcesHasBeenSet = true;
119 m_resources.emplace_back(std::forward<ResourcesT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
129 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
130 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
131 void SetLastModifiedTime(LastModifiedTimeT&& value) {
132 m_lastModifiedTimeHasBeenSet = true;
133 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
134 }
135 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
136 Attachment& WithLastModifiedTime(LastModifiedTimeT&& value) {
137 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
147 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
148 template <typename CreatedTimeT = Aws::Utils::DateTime>
149 void SetCreatedTime(CreatedTimeT&& value) {
150 m_createdTimeHasBeenSet = true;
151 m_createdTime = std::forward<CreatedTimeT>(value);
152 }
153 template <typename CreatedTimeT = Aws::Utils::DateTime>
154 Attachment& WithCreatedTime(CreatedTimeT&& value) {
155 SetCreatedTime(std::forward<CreatedTimeT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_attachmentArn;
161
162 Aws::String m_name;
163
164 Aws::Vector<Aws::String> m_principals;
165
166 Aws::Vector<Resource> m_resources;
167
168 Aws::Utils::DateTime m_lastModifiedTime{};
169
170 Aws::Utils::DateTime m_createdTime{};
171 bool m_attachmentArnHasBeenSet = false;
172 bool m_nameHasBeenSet = false;
173 bool m_principalsHasBeenSet = false;
174 bool m_resourcesHasBeenSet = false;
175 bool m_lastModifiedTimeHasBeenSet = false;
176 bool m_createdTimeHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace GlobalAccelerator
181} // namespace Aws
const Aws::String & GetAttachmentArn() const
Definition Attachment.h:44
Attachment & WithAttachmentArn(AttachmentArnT &&value)
Definition Attachment.h:52
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
Attachment & WithName(NameT &&value)
Definition Attachment.h:70
Attachment & AddResources(ResourcesT &&value)
Definition Attachment.h:117
Attachment & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Attachment.h:136
AWS_GLOBALACCELERATOR_API Attachment(Aws::Utils::Json::JsonView jsonValue)
Attachment & WithPrincipals(PrincipalsT &&value)
Definition Attachment.h:88
void SetAttachmentArn(AttachmentArnT &&value)
Definition Attachment.h:47
const Aws::String & GetName() const
Definition Attachment.h:62
Attachment & WithResources(ResourcesT &&value)
Definition Attachment.h:112
void SetPrincipals(PrincipalsT &&value)
Definition Attachment.h:83
const Aws::Vector< Aws::String > & GetPrincipals() const
Definition Attachment.h:80
Attachment & WithCreatedTime(CreatedTimeT &&value)
Definition Attachment.h:154
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Attachment.h:131
const Aws::Vector< Resource > & GetResources() const
Definition Attachment.h:104
Attachment & AddPrincipals(PrincipalsT &&value)
Definition Attachment.h:93
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Attachment.h:128
void SetCreatedTime(CreatedTimeT &&value)
Definition Attachment.h:149
void SetResources(ResourcesT &&value)
Definition Attachment.h:107
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Attachment.h:146
AWS_GLOBALACCELERATOR_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API Attachment()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue