AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Attachment.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GlobalAccelerator
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_GLOBALACCELERATOR_API Attachment() = default;
41 AWS_GLOBALACCELERATOR_API Attachment(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GLOBALACCELERATOR_API Attachment& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAttachmentArn() const { return m_attachmentArn; }
51 inline bool AttachmentArnHasBeenSet() const { return m_attachmentArnHasBeenSet; }
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>
55 Attachment& WithAttachmentArn(AttachmentArnT&& value) { SetAttachmentArn(std::forward<AttachmentArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 Attachment& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetPrincipals() const { return m_principals; }
75 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
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>>
79 Attachment& WithPrincipals(PrincipalsT&& value) { SetPrincipals(std::forward<PrincipalsT>(value)); return *this;}
80 template<typename PrincipalsT = Aws::String>
81 Attachment& AddPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals.emplace_back(std::forward<PrincipalsT>(value)); return *this; }
83
85
88 inline const Aws::Vector<Resource>& GetResources() const { return m_resources; }
89 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
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>>
93 Attachment& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
94 template<typename ResourcesT = Resource>
95 Attachment& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
97
99
102 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
103 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
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>
107 Attachment& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
115 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
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>
119 Attachment& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
121 private:
122
123 Aws::String m_attachmentArn;
124 bool m_attachmentArnHasBeenSet = false;
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_principals;
130 bool m_principalsHasBeenSet = false;
131
132 Aws::Vector<Resource> m_resources;
133 bool m_resourcesHasBeenSet = false;
134
135 Aws::Utils::DateTime m_lastModifiedTime{};
136 bool m_lastModifiedTimeHasBeenSet = false;
137
138 Aws::Utils::DateTime m_createdTime{};
139 bool m_createdTimeHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace GlobalAccelerator
144} // namespace Aws
const Aws::String & GetAttachmentArn() const
Definition Attachment.h:50
Attachment & WithAttachmentArn(AttachmentArnT &&value)
Definition Attachment.h:55
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
Attachment & WithName(NameT &&value)
Definition Attachment.h:67
Attachment & AddResources(ResourcesT &&value)
Definition Attachment.h:95
Attachment & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Attachment.h:107
AWS_GLOBALACCELERATOR_API Attachment(Aws::Utils::Json::JsonView jsonValue)
Attachment & WithPrincipals(PrincipalsT &&value)
Definition Attachment.h:79
void SetAttachmentArn(AttachmentArnT &&value)
Definition Attachment.h:53
const Aws::String & GetName() const
Definition Attachment.h:62
Attachment & WithResources(ResourcesT &&value)
Definition Attachment.h:93
void SetPrincipals(PrincipalsT &&value)
Definition Attachment.h:77
const Aws::Vector< Aws::String > & GetPrincipals() const
Definition Attachment.h:74
Attachment & WithCreatedTime(CreatedTimeT &&value)
Definition Attachment.h:119
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Attachment.h:105
const Aws::Vector< Resource > & GetResources() const
Definition Attachment.h:88
Attachment & AddPrincipals(PrincipalsT &&value)
Definition Attachment.h:81
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Attachment.h:102
void SetCreatedTime(CreatedTimeT &&value)
Definition Attachment.h:117
void SetResources(ResourcesT &&value)
Definition Attachment.h:91
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Attachment.h:114
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