AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DomainDescription.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/DomainStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeArtifact {
22namespace Model {
23
32 public:
33 AWS_CODEARTIFACT_API DomainDescription() = default;
34 AWS_CODEARTIFACT_API DomainDescription(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEARTIFACT_API DomainDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 DomainDescription& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetOwner() const { return m_owner; }
61 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
62 template <typename OwnerT = Aws::String>
63 void SetOwner(OwnerT&& value) {
64 m_ownerHasBeenSet = true;
65 m_owner = std::forward<OwnerT>(value);
66 }
67 template <typename OwnerT = Aws::String>
68 DomainDescription& WithOwner(OwnerT&& value) {
69 SetOwner(std::forward<OwnerT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetArn() const { return m_arn; }
79 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
80 template <typename ArnT = Aws::String>
81 void SetArn(ArnT&& value) {
82 m_arnHasBeenSet = true;
83 m_arn = std::forward<ArnT>(value);
84 }
85 template <typename ArnT = Aws::String>
86 DomainDescription& WithArn(ArnT&& value) {
87 SetArn(std::forward<ArnT>(value));
88 return *this;
89 }
91
93
96 inline DomainStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(DomainStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
113 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
114 template <typename CreatedTimeT = Aws::Utils::DateTime>
115 void SetCreatedTime(CreatedTimeT&& value) {
116 m_createdTimeHasBeenSet = true;
117 m_createdTime = std::forward<CreatedTimeT>(value);
118 }
119 template <typename CreatedTimeT = Aws::Utils::DateTime>
120 DomainDescription& WithCreatedTime(CreatedTimeT&& value) {
121 SetCreatedTime(std::forward<CreatedTimeT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
132 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
133 template <typename EncryptionKeyT = Aws::String>
134 void SetEncryptionKey(EncryptionKeyT&& value) {
135 m_encryptionKeyHasBeenSet = true;
136 m_encryptionKey = std::forward<EncryptionKeyT>(value);
137 }
138 template <typename EncryptionKeyT = Aws::String>
139 DomainDescription& WithEncryptionKey(EncryptionKeyT&& value) {
140 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
141 return *this;
142 }
144
146
149 inline int GetRepositoryCount() const { return m_repositoryCount; }
150 inline bool RepositoryCountHasBeenSet() const { return m_repositoryCountHasBeenSet; }
151 inline void SetRepositoryCount(int value) {
152 m_repositoryCountHasBeenSet = true;
153 m_repositoryCount = value;
154 }
156 SetRepositoryCount(value);
157 return *this;
158 }
160
162
165 inline long long GetAssetSizeBytes() const { return m_assetSizeBytes; }
166 inline bool AssetSizeBytesHasBeenSet() const { return m_assetSizeBytesHasBeenSet; }
167 inline void SetAssetSizeBytes(long long value) {
168 m_assetSizeBytesHasBeenSet = true;
169 m_assetSizeBytes = value;
170 }
171 inline DomainDescription& WithAssetSizeBytes(long long value) {
172 SetAssetSizeBytes(value);
173 return *this;
174 }
176
178
182 inline const Aws::String& GetS3BucketArn() const { return m_s3BucketArn; }
183 inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; }
184 template <typename S3BucketArnT = Aws::String>
185 void SetS3BucketArn(S3BucketArnT&& value) {
186 m_s3BucketArnHasBeenSet = true;
187 m_s3BucketArn = std::forward<S3BucketArnT>(value);
188 }
189 template <typename S3BucketArnT = Aws::String>
190 DomainDescription& WithS3BucketArn(S3BucketArnT&& value) {
191 SetS3BucketArn(std::forward<S3BucketArnT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_name;
197
198 Aws::String m_owner;
199
200 Aws::String m_arn;
201
203
204 Aws::Utils::DateTime m_createdTime{};
205
206 Aws::String m_encryptionKey;
207
208 int m_repositoryCount{0};
209
210 long long m_assetSizeBytes{0};
211
212 Aws::String m_s3BucketArn;
213 bool m_nameHasBeenSet = false;
214 bool m_ownerHasBeenSet = false;
215 bool m_arnHasBeenSet = false;
216 bool m_statusHasBeenSet = false;
217 bool m_createdTimeHasBeenSet = false;
218 bool m_encryptionKeyHasBeenSet = false;
219 bool m_repositoryCountHasBeenSet = false;
220 bool m_assetSizeBytesHasBeenSet = false;
221 bool m_s3BucketArnHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace CodeArtifact
226} // namespace Aws
DomainDescription & WithOwner(OwnerT &&value)
DomainDescription & WithAssetSizeBytes(long long value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEARTIFACT_API DomainDescription()=default
const Aws::Utils::DateTime & GetCreatedTime() const
DomainDescription & WithArn(ArnT &&value)
void SetEncryptionKey(EncryptionKeyT &&value)
DomainDescription & WithStatus(DomainStatus value)
DomainDescription & WithCreatedTime(CreatedTimeT &&value)
DomainDescription & WithS3BucketArn(S3BucketArnT &&value)
DomainDescription & WithRepositoryCount(int value)
AWS_CODEARTIFACT_API DomainDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
DomainDescription & WithName(NameT &&value)
AWS_CODEARTIFACT_API DomainDescription(Aws::Utils::Json::JsonView jsonValue)
DomainDescription & WithEncryptionKey(EncryptionKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue