AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline DomainSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline DomainSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline DomainSummary& WithName(const char* value) { SetName(value); return *this;}
59
61
65 inline const Aws::String& GetOwner() const{ return m_owner; }
66 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
67 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
68 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
69 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
70 inline DomainSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
71 inline DomainSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
72 inline DomainSummary& WithOwner(const char* value) { SetOwner(value); return *this;}
74
76
79 inline const Aws::String& GetArn() const{ return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
82 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
83 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
84 inline DomainSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
85 inline DomainSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
86 inline DomainSummary& WithArn(const char* value) { SetArn(value); return *this;}
88
90
93 inline const DomainStatus& GetStatus() const{ return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(const DomainStatus& value) { m_statusHasBeenSet = true; m_status = value; }
96 inline void SetStatus(DomainStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
97 inline DomainSummary& WithStatus(const DomainStatus& value) { SetStatus(value); return *this;}
98 inline DomainSummary& WithStatus(DomainStatus&& value) { SetStatus(std::move(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
106 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
107 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
108 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
109 inline DomainSummary& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
110 inline DomainSummary& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
112
114
117 inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; }
118 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
119 inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
120 inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); }
121 inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); }
122 inline DomainSummary& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;}
123 inline DomainSummary& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;}
124 inline DomainSummary& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;}
126 private:
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
131 Aws::String m_owner;
132 bool m_ownerHasBeenSet = false;
133
134 Aws::String m_arn;
135 bool m_arnHasBeenSet = false;
136
137 DomainStatus m_status;
138 bool m_statusHasBeenSet = false;
139
140 Aws::Utils::DateTime m_createdTime;
141 bool m_createdTimeHasBeenSet = false;
142
143 Aws::String m_encryptionKey;
144 bool m_encryptionKeyHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace CodeArtifact
149} // namespace Aws
DomainSummary & WithOwner(Aws::String &&value)
const Aws::String & GetOwner() const
void SetEncryptionKey(Aws::String &&value)
AWS_CODEARTIFACT_API DomainSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedTime(Aws::Utils::DateTime &&value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
DomainSummary & WithArn(Aws::String &&value)
const Aws::String & GetArn() const
void SetOwner(const Aws::String &value)
DomainSummary & WithCreatedTime(Aws::Utils::DateTime &&value)
DomainSummary & WithOwner(const char *value)
const DomainStatus & GetStatus() const
AWS_CODEARTIFACT_API DomainSummary(Aws::Utils::Json::JsonView jsonValue)
DomainSummary & WithEncryptionKey(Aws::String &&value)
DomainSummary & WithCreatedTime(const Aws::Utils::DateTime &value)
DomainSummary & WithStatus(DomainStatus &&value)
AWS_CODEARTIFACT_API DomainSummary()
DomainSummary & WithName(const Aws::String &value)
DomainSummary & WithStatus(const DomainStatus &value)
void SetName(const Aws::String &value)
DomainSummary & WithName(const char *value)
void SetStatus(DomainStatus &&value)
void SetArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedTime() const
void SetOwner(Aws::String &&value)
const Aws::String & GetName() const
void SetStatus(const DomainStatus &value)
DomainSummary & WithEncryptionKey(const char *value)
void SetEncryptionKey(const Aws::String &value)
DomainSummary & WithOwner(const Aws::String &value)
DomainSummary & WithEncryptionKey(const Aws::String &value)
DomainSummary & WithArn(const Aws::String &value)
void SetName(Aws::String &&value)
DomainSummary & WithArn(const char *value)
void SetEncryptionKey(const char *value)
const Aws::String & GetEncryptionKey() const
DomainSummary & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue