AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 DomainDescription& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
64 template<typename OwnerT = Aws::String>
65 DomainDescription& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
67
69
72 inline const Aws::String& GetArn() const { return m_arn; }
73 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
74 template<typename ArnT = Aws::String>
75 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
76 template<typename ArnT = Aws::String>
77 DomainDescription& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
79
81
84 inline DomainStatus GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(DomainStatus value) { m_statusHasBeenSet = true; m_status = value; }
87 inline DomainDescription& WithStatus(DomainStatus value) { SetStatus(value); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
95 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
96 template<typename CreatedTimeT = Aws::Utils::DateTime>
97 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
98 template<typename CreatedTimeT = Aws::Utils::DateTime>
99 DomainDescription& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
101
103
107 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
108 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
109 template<typename EncryptionKeyT = Aws::String>
110 void SetEncryptionKey(EncryptionKeyT&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::forward<EncryptionKeyT>(value); }
111 template<typename EncryptionKeyT = Aws::String>
112 DomainDescription& WithEncryptionKey(EncryptionKeyT&& value) { SetEncryptionKey(std::forward<EncryptionKeyT>(value)); return *this;}
114
116
119 inline int GetRepositoryCount() const { return m_repositoryCount; }
120 inline bool RepositoryCountHasBeenSet() const { return m_repositoryCountHasBeenSet; }
121 inline void SetRepositoryCount(int value) { m_repositoryCountHasBeenSet = true; m_repositoryCount = value; }
122 inline DomainDescription& WithRepositoryCount(int value) { SetRepositoryCount(value); return *this;}
124
126
129 inline long long GetAssetSizeBytes() const { return m_assetSizeBytes; }
130 inline bool AssetSizeBytesHasBeenSet() const { return m_assetSizeBytesHasBeenSet; }
131 inline void SetAssetSizeBytes(long long value) { m_assetSizeBytesHasBeenSet = true; m_assetSizeBytes = value; }
132 inline DomainDescription& WithAssetSizeBytes(long long value) { SetAssetSizeBytes(value); return *this;}
134
136
140 inline const Aws::String& GetS3BucketArn() const { return m_s3BucketArn; }
141 inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; }
142 template<typename S3BucketArnT = Aws::String>
143 void SetS3BucketArn(S3BucketArnT&& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = std::forward<S3BucketArnT>(value); }
144 template<typename S3BucketArnT = Aws::String>
145 DomainDescription& WithS3BucketArn(S3BucketArnT&& value) { SetS3BucketArn(std::forward<S3BucketArnT>(value)); return *this;}
147 private:
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
152 Aws::String m_owner;
153 bool m_ownerHasBeenSet = false;
154
155 Aws::String m_arn;
156 bool m_arnHasBeenSet = false;
157
159 bool m_statusHasBeenSet = false;
160
161 Aws::Utils::DateTime m_createdTime{};
162 bool m_createdTimeHasBeenSet = false;
163
164 Aws::String m_encryptionKey;
165 bool m_encryptionKeyHasBeenSet = false;
166
167 int m_repositoryCount{0};
168 bool m_repositoryCountHasBeenSet = false;
169
170 long long m_assetSizeBytes{0};
171 bool m_assetSizeBytesHasBeenSet = false;
172
173 Aws::String m_s3BucketArn;
174 bool m_s3BucketArnHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace CodeArtifact
179} // 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