AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DomainSummary.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
38 {
39 public:
40 AWS_CODEARTIFACT_API DomainSummary() = default;
41 AWS_CODEARTIFACT_API DomainSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEARTIFACT_API DomainSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 DomainSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
67 template<typename OwnerT = Aws::String>
68 DomainSummary& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
70
72
75 inline const Aws::String& GetArn() const { return m_arn; }
76 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
77 template<typename ArnT = Aws::String>
78 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
79 template<typename ArnT = Aws::String>
80 DomainSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
82
84
87 inline DomainStatus GetStatus() const { return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 inline void SetStatus(DomainStatus value) { m_statusHasBeenSet = true; m_status = value; }
90 inline DomainSummary& WithStatus(DomainStatus value) { SetStatus(value); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
98 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
99 template<typename CreatedTimeT = Aws::Utils::DateTime>
100 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
101 template<typename CreatedTimeT = Aws::Utils::DateTime>
102 DomainSummary& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
104
106
109 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
110 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
111 template<typename EncryptionKeyT = Aws::String>
112 void SetEncryptionKey(EncryptionKeyT&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::forward<EncryptionKeyT>(value); }
113 template<typename EncryptionKeyT = Aws::String>
114 DomainSummary& WithEncryptionKey(EncryptionKeyT&& value) { SetEncryptionKey(std::forward<EncryptionKeyT>(value)); return *this;}
116 private:
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_owner;
122 bool m_ownerHasBeenSet = false;
123
124 Aws::String m_arn;
125 bool m_arnHasBeenSet = false;
126
128 bool m_statusHasBeenSet = false;
129
130 Aws::Utils::DateTime m_createdTime{};
131 bool m_createdTimeHasBeenSet = false;
132
133 Aws::String m_encryptionKey;
134 bool m_encryptionKeyHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace CodeArtifact
139} // 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