AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegistryAlias.h
1
6#pragma once
7#include <aws/ecr-public/ECRPublic_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr-public/model/RegistryAliasStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECRPublic
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_ECRPUBLIC_API RegistryAlias();
41 AWS_ECRPUBLIC_API RegistryAlias(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ECRPUBLIC_API RegistryAlias& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ECRPUBLIC_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 RegistryAlias& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline RegistryAlias& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline RegistryAlias& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const RegistryAliasStatus& GetStatus() const{ return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(const RegistryAliasStatus& value) { m_statusHasBeenSet = true; m_status = value; }
67 inline void SetStatus(RegistryAliasStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
68 inline RegistryAlias& WithStatus(const RegistryAliasStatus& value) { SetStatus(value); return *this;}
69 inline RegistryAlias& WithStatus(RegistryAliasStatus&& value) { SetStatus(std::move(value)); return *this;}
71
73
81 inline bool GetPrimaryRegistryAlias() const{ return m_primaryRegistryAlias; }
82 inline bool PrimaryRegistryAliasHasBeenSet() const { return m_primaryRegistryAliasHasBeenSet; }
83 inline void SetPrimaryRegistryAlias(bool value) { m_primaryRegistryAliasHasBeenSet = true; m_primaryRegistryAlias = value; }
84 inline RegistryAlias& WithPrimaryRegistryAlias(bool value) { SetPrimaryRegistryAlias(value); return *this;}
86
88
93 inline bool GetDefaultRegistryAlias() const{ return m_defaultRegistryAlias; }
94 inline bool DefaultRegistryAliasHasBeenSet() const { return m_defaultRegistryAliasHasBeenSet; }
95 inline void SetDefaultRegistryAlias(bool value) { m_defaultRegistryAliasHasBeenSet = true; m_defaultRegistryAlias = value; }
96 inline RegistryAlias& WithDefaultRegistryAlias(bool value) { SetDefaultRegistryAlias(value); return *this;}
98 private:
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 RegistryAliasStatus m_status;
104 bool m_statusHasBeenSet = false;
105
106 bool m_primaryRegistryAlias;
107 bool m_primaryRegistryAliasHasBeenSet = false;
108
109 bool m_defaultRegistryAlias;
110 bool m_defaultRegistryAliasHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace ECRPublic
115} // namespace Aws
RegistryAlias & WithDefaultRegistryAlias(bool value)
void SetName(Aws::String &&value)
RegistryAlias & WithStatus(RegistryAliasStatus &&value)
AWS_ECRPUBLIC_API RegistryAlias & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const
RegistryAlias & WithName(const Aws::String &value)
void SetName(const char *value)
RegistryAlias & WithName(const char *value)
RegistryAlias & WithName(Aws::String &&value)
void SetStatus(const RegistryAliasStatus &value)
void SetName(const Aws::String &value)
void SetStatus(RegistryAliasStatus &&value)
AWS_ECRPUBLIC_API RegistryAlias(Aws::Utils::Json::JsonView jsonValue)
RegistryAlias & WithStatus(const RegistryAliasStatus &value)
const Aws::String & GetName() const
const RegistryAliasStatus & GetStatus() const
RegistryAlias & WithPrimaryRegistryAlias(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue