7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/globalaccelerator/model/Resource.h>
24namespace GlobalAccelerator
52 template<
typename AttachmentArnT = Aws::String>
53 void SetAttachmentArn(AttachmentArnT&& value) { m_attachmentArnHasBeenSet =
true; m_attachmentArn = std::forward<AttachmentArnT>(value); }
54 template<
typename AttachmentArnT = Aws::String>
64 template<
typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
66 template<
typename NameT = Aws::String>
76 template<
typename PrincipalsT = Aws::Vector<Aws::String>>
77 void SetPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet =
true; m_principals = std::forward<PrincipalsT>(value); }
78 template<
typename PrincipalsT = Aws::Vector<Aws::String>>
80 template<
typename PrincipalsT = Aws::String>
81 Attachment&
AddPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet =
true; m_principals.emplace_back(std::forward<PrincipalsT>(value));
return *
this; }
90 template<
typename ResourcesT = Aws::Vector<Resource>>
91 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet =
true; m_resources = std::forward<ResourcesT>(value); }
92 template<
typename ResourcesT = Aws::Vector<Resource>>
94 template<
typename ResourcesT = Resource>
95 Attachment&
AddResources(ResourcesT&& value) { m_resourcesHasBeenSet =
true; m_resources.emplace_back(std::forward<ResourcesT>(value));
return *
this; }
104 template<
typename LastModifiedTimeT = Aws::Utils::DateTime>
105 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet =
true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
106 template<
typename LastModifiedTimeT = Aws::Utils::DateTime>
116 template<
typename CreatedTimeT = Aws::Utils::DateTime>
117 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet =
true; m_createdTime = std::forward<CreatedTimeT>(value); }
118 template<
typename CreatedTimeT = Aws::Utils::DateTime>
124 bool m_attachmentArnHasBeenSet =
false;
127 bool m_nameHasBeenSet =
false;
130 bool m_principalsHasBeenSet =
false;
133 bool m_resourcesHasBeenSet =
false;
136 bool m_lastModifiedTimeHasBeenSet =
false;
139 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