AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DomainSummary.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
34 public:
35 AWS_CODEARTIFACT_API DomainSummary() = default;
36 AWS_CODEARTIFACT_API DomainSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEARTIFACT_API DomainSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 DomainSummary& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetOwner() const { return m_owner; }
64 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
65 template <typename OwnerT = Aws::String>
66 void SetOwner(OwnerT&& value) {
67 m_ownerHasBeenSet = true;
68 m_owner = std::forward<OwnerT>(value);
69 }
70 template <typename OwnerT = Aws::String>
71 DomainSummary& WithOwner(OwnerT&& value) {
72 SetOwner(std::forward<OwnerT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetArn() const { return m_arn; }
82 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
83 template <typename ArnT = Aws::String>
84 void SetArn(ArnT&& value) {
85 m_arnHasBeenSet = true;
86 m_arn = std::forward<ArnT>(value);
87 }
88 template <typename ArnT = Aws::String>
89 DomainSummary& WithArn(ArnT&& value) {
90 SetArn(std::forward<ArnT>(value));
91 return *this;
92 }
94
96
99 inline DomainStatus GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(DomainStatus value) {
102 m_statusHasBeenSet = true;
103 m_status = value;
104 }
106 SetStatus(value);
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
116 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
117 template <typename CreatedTimeT = Aws::Utils::DateTime>
118 void SetCreatedTime(CreatedTimeT&& value) {
119 m_createdTimeHasBeenSet = true;
120 m_createdTime = std::forward<CreatedTimeT>(value);
121 }
122 template <typename CreatedTimeT = Aws::Utils::DateTime>
123 DomainSummary& WithCreatedTime(CreatedTimeT&& value) {
124 SetCreatedTime(std::forward<CreatedTimeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
134 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
135 template <typename EncryptionKeyT = Aws::String>
136 void SetEncryptionKey(EncryptionKeyT&& value) {
137 m_encryptionKeyHasBeenSet = true;
138 m_encryptionKey = std::forward<EncryptionKeyT>(value);
139 }
140 template <typename EncryptionKeyT = Aws::String>
141 DomainSummary& WithEncryptionKey(EncryptionKeyT&& value) {
142 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_name;
148
149 Aws::String m_owner;
150
151 Aws::String m_arn;
152
154
155 Aws::Utils::DateTime m_createdTime{};
156
157 Aws::String m_encryptionKey;
158 bool m_nameHasBeenSet = false;
159 bool m_ownerHasBeenSet = false;
160 bool m_arnHasBeenSet = false;
161 bool m_statusHasBeenSet = false;
162 bool m_createdTimeHasBeenSet = false;
163 bool m_encryptionKeyHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace CodeArtifact
168} // namespace Aws
const Aws::String & GetOwner() const
AWS_CODEARTIFACT_API DomainSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetArn() const
DomainSummary & WithEncryptionKey(EncryptionKeyT &&value)
DomainSummary & WithArn(ArnT &&value)
DomainSummary & WithCreatedTime(CreatedTimeT &&value)
void SetEncryptionKey(EncryptionKeyT &&value)
AWS_CODEARTIFACT_API DomainSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTime() const
DomainSummary & WithStatus(DomainStatus value)
const Aws::String & GetName() const
AWS_CODEARTIFACT_API DomainSummary()=default
DomainSummary & WithOwner(OwnerT &&value)
void SetCreatedTime(CreatedTimeT &&value)
DomainSummary & WithName(NameT &&value)
const Aws::String & GetEncryptionKey() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue