AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DomainDescription.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeartifact/model/DomainStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeArtifact
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_CODEARTIFACT_API DomainDescription();
39 AWS_CODEARTIFACT_API DomainDescription(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEARTIFACT_API DomainDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline DomainDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline DomainDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline DomainDescription& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetOwner() const{ return m_owner; }
63 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
64 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
65 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
66 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
67 inline DomainDescription& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
68 inline DomainDescription& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
69 inline DomainDescription& WithOwner(const char* value) { SetOwner(value); return *this;}
71
73
76 inline const Aws::String& GetArn() const{ return m_arn; }
77 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
78 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
79 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
80 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
81 inline DomainDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;}
82 inline DomainDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
83 inline DomainDescription& WithArn(const char* value) { SetArn(value); return *this;}
85
87
90 inline const DomainStatus& GetStatus() const{ return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(const DomainStatus& value) { m_statusHasBeenSet = true; m_status = value; }
93 inline void SetStatus(DomainStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
94 inline DomainDescription& WithStatus(const DomainStatus& value) { SetStatus(value); return *this;}
95 inline DomainDescription& WithStatus(DomainStatus&& value) { SetStatus(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
103 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
104 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
105 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
106 inline DomainDescription& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
107 inline DomainDescription& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
109
111
115 inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; }
116 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
117 inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
118 inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); }
119 inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); }
120 inline DomainDescription& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;}
121 inline DomainDescription& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;}
122 inline DomainDescription& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;}
124
126
129 inline int GetRepositoryCount() const{ return m_repositoryCount; }
130 inline bool RepositoryCountHasBeenSet() const { return m_repositoryCountHasBeenSet; }
131 inline void SetRepositoryCount(int value) { m_repositoryCountHasBeenSet = true; m_repositoryCount = value; }
132 inline DomainDescription& WithRepositoryCount(int value) { SetRepositoryCount(value); return *this;}
134
136
139 inline long long GetAssetSizeBytes() const{ return m_assetSizeBytes; }
140 inline bool AssetSizeBytesHasBeenSet() const { return m_assetSizeBytesHasBeenSet; }
141 inline void SetAssetSizeBytes(long long value) { m_assetSizeBytesHasBeenSet = true; m_assetSizeBytes = value; }
142 inline DomainDescription& WithAssetSizeBytes(long long value) { SetAssetSizeBytes(value); return *this;}
144
146
150 inline const Aws::String& GetS3BucketArn() const{ return m_s3BucketArn; }
151 inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; }
152 inline void SetS3BucketArn(const Aws::String& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = value; }
153 inline void SetS3BucketArn(Aws::String&& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = std::move(value); }
154 inline void SetS3BucketArn(const char* value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn.assign(value); }
155 inline DomainDescription& WithS3BucketArn(const Aws::String& value) { SetS3BucketArn(value); return *this;}
156 inline DomainDescription& WithS3BucketArn(Aws::String&& value) { SetS3BucketArn(std::move(value)); return *this;}
157 inline DomainDescription& WithS3BucketArn(const char* value) { SetS3BucketArn(value); return *this;}
159 private:
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::String m_owner;
165 bool m_ownerHasBeenSet = false;
166
167 Aws::String m_arn;
168 bool m_arnHasBeenSet = false;
169
170 DomainStatus m_status;
171 bool m_statusHasBeenSet = false;
172
173 Aws::Utils::DateTime m_createdTime;
174 bool m_createdTimeHasBeenSet = false;
175
176 Aws::String m_encryptionKey;
177 bool m_encryptionKeyHasBeenSet = false;
178
179 int m_repositoryCount;
180 bool m_repositoryCountHasBeenSet = false;
181
182 long long m_assetSizeBytes;
183 bool m_assetSizeBytesHasBeenSet = false;
184
185 Aws::String m_s3BucketArn;
186 bool m_s3BucketArnHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace CodeArtifact
191} // namespace Aws
DomainDescription & WithStatus(const DomainStatus &value)
DomainDescription & WithAssetSizeBytes(long long value)
void SetStatus(const DomainStatus &value)
DomainDescription & WithEncryptionKey(Aws::String &&value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
DomainDescription & WithCreatedTime(Aws::Utils::DateTime &&value)
DomainDescription & WithS3BucketArn(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
DomainDescription & WithCreatedTime(const Aws::Utils::DateTime &value)
DomainDescription & WithEncryptionKey(const Aws::String &value)
DomainDescription & WithS3BucketArn(const Aws::String &value)
DomainDescription & WithArn(const Aws::String &value)
void SetEncryptionKey(const Aws::String &value)
DomainDescription & WithName(Aws::String &&value)
void SetOwner(const Aws::String &value)
DomainDescription & WithStatus(DomainStatus &&value)
DomainDescription & WithEncryptionKey(const char *value)
void SetCreatedTime(Aws::Utils::DateTime &&value)
DomainDescription & WithOwner(const Aws::String &value)
DomainDescription & WithRepositoryCount(int value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
DomainDescription & WithOwner(const char *value)
void SetS3BucketArn(const Aws::String &value)
DomainDescription & WithArn(Aws::String &&value)
AWS_CODEARTIFACT_API DomainDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
DomainDescription & WithArn(const char *value)
DomainDescription & WithName(const char *value)
AWS_CODEARTIFACT_API DomainDescription(Aws::Utils::Json::JsonView jsonValue)
DomainDescription & WithS3BucketArn(const char *value)
DomainDescription & WithOwner(Aws::String &&value)
DomainDescription & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue