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>
22namespace GlobalAccelerator {
46 template <
typename AttachmentArnT = Aws::String>
48 m_attachmentArnHasBeenSet =
true;
49 m_attachmentArn = std::forward<AttachmentArnT>(value);
51 template <
typename AttachmentArnT = Aws::String>
64 template <
typename NameT = Aws::String>
66 m_nameHasBeenSet =
true;
67 m_name = std::forward<NameT>(value);
69 template <
typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
82 template <
typename PrincipalsT = Aws::Vector<Aws::String>>
84 m_principalsHasBeenSet =
true;
85 m_principals = std::forward<PrincipalsT>(value);
87 template <
typename PrincipalsT = Aws::Vector<Aws::String>>
92 template <
typename PrincipalsT = Aws::String>
94 m_principalsHasBeenSet =
true;
95 m_principals.emplace_back(std::forward<PrincipalsT>(value));
106 template <
typename ResourcesT = Aws::Vector<Resource>>
108 m_resourcesHasBeenSet =
true;
109 m_resources = std::forward<ResourcesT>(value);
111 template <
typename ResourcesT = Aws::Vector<Resource>>
116 template <
typename ResourcesT = Resource>
118 m_resourcesHasBeenSet =
true;
119 m_resources.emplace_back(std::forward<ResourcesT>(value));
130 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
132 m_lastModifiedTimeHasBeenSet =
true;
133 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
135 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
148 template <
typename CreatedTimeT = Aws::Utils::DateTime>
150 m_createdTimeHasBeenSet =
true;
151 m_createdTime = std::forward<CreatedTimeT>(value);
153 template <
typename CreatedTimeT = Aws::Utils::DateTime>
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;
const Aws::String & GetAttachmentArn() const
Attachment & WithAttachmentArn(AttachmentArnT &&value)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
Attachment & WithName(NameT &&value)
Attachment & AddResources(ResourcesT &&value)
Attachment & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_GLOBALACCELERATOR_API Attachment(Aws::Utils::Json::JsonView jsonValue)
Attachment & WithPrincipals(PrincipalsT &&value)
void SetName(NameT &&value)
bool LastModifiedTimeHasBeenSet() const
void SetAttachmentArn(AttachmentArnT &&value)
const Aws::String & GetName() const
bool PrincipalsHasBeenSet() const
Attachment & WithResources(ResourcesT &&value)
void SetPrincipals(PrincipalsT &&value)
const Aws::Vector< Aws::String > & GetPrincipals() const
Attachment & WithCreatedTime(CreatedTimeT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Vector< Resource > & GetResources() const
Attachment & AddPrincipals(PrincipalsT &&value)
bool AttachmentArnHasBeenSet() const
bool CreatedTimeHasBeenSet() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetCreatedTime(CreatedTimeT &&value)
bool ResourcesHasBeenSet() const
void SetResources(ResourcesT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_GLOBALACCELERATOR_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API Attachment()=default
bool NameHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue