AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Registry.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecr-public/model/RegistryAlias.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 ECRPublic
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ECRPUBLIC_API Registry();
37 AWS_ECRPUBLIC_API Registry(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ECRPUBLIC_API Registry& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
48 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
49 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
50 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
51 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
52 inline Registry& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
53 inline Registry& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
54 inline Registry& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
56
58
61 inline const Aws::String& GetRegistryArn() const{ return m_registryArn; }
62 inline bool RegistryArnHasBeenSet() const { return m_registryArnHasBeenSet; }
63 inline void SetRegistryArn(const Aws::String& value) { m_registryArnHasBeenSet = true; m_registryArn = value; }
64 inline void SetRegistryArn(Aws::String&& value) { m_registryArnHasBeenSet = true; m_registryArn = std::move(value); }
65 inline void SetRegistryArn(const char* value) { m_registryArnHasBeenSet = true; m_registryArn.assign(value); }
66 inline Registry& WithRegistryArn(const Aws::String& value) { SetRegistryArn(value); return *this;}
67 inline Registry& WithRegistryArn(Aws::String&& value) { SetRegistryArn(std::move(value)); return *this;}
68 inline Registry& WithRegistryArn(const char* value) { SetRegistryArn(value); return *this;}
70
72
76 inline const Aws::String& GetRegistryUri() const{ return m_registryUri; }
77 inline bool RegistryUriHasBeenSet() const { return m_registryUriHasBeenSet; }
78 inline void SetRegistryUri(const Aws::String& value) { m_registryUriHasBeenSet = true; m_registryUri = value; }
79 inline void SetRegistryUri(Aws::String&& value) { m_registryUriHasBeenSet = true; m_registryUri = std::move(value); }
80 inline void SetRegistryUri(const char* value) { m_registryUriHasBeenSet = true; m_registryUri.assign(value); }
81 inline Registry& WithRegistryUri(const Aws::String& value) { SetRegistryUri(value); return *this;}
82 inline Registry& WithRegistryUri(Aws::String&& value) { SetRegistryUri(std::move(value)); return *this;}
83 inline Registry& WithRegistryUri(const char* value) { SetRegistryUri(value); return *this;}
85
87
92 inline bool GetVerified() const{ return m_verified; }
93 inline bool VerifiedHasBeenSet() const { return m_verifiedHasBeenSet; }
94 inline void SetVerified(bool value) { m_verifiedHasBeenSet = true; m_verified = value; }
95 inline Registry& WithVerified(bool value) { SetVerified(value); return *this;}
97
99
102 inline const Aws::Vector<RegistryAlias>& GetAliases() const{ return m_aliases; }
103 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
104 inline void SetAliases(const Aws::Vector<RegistryAlias>& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
105 inline void SetAliases(Aws::Vector<RegistryAlias>&& value) { m_aliasesHasBeenSet = true; m_aliases = std::move(value); }
106 inline Registry& WithAliases(const Aws::Vector<RegistryAlias>& value) { SetAliases(value); return *this;}
107 inline Registry& WithAliases(Aws::Vector<RegistryAlias>&& value) { SetAliases(std::move(value)); return *this;}
108 inline Registry& AddAliases(const RegistryAlias& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(value); return *this; }
109 inline Registry& AddAliases(RegistryAlias&& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(std::move(value)); return *this; }
111 private:
112
113 Aws::String m_registryId;
114 bool m_registryIdHasBeenSet = false;
115
116 Aws::String m_registryArn;
117 bool m_registryArnHasBeenSet = false;
118
119 Aws::String m_registryUri;
120 bool m_registryUriHasBeenSet = false;
121
122 bool m_verified;
123 bool m_verifiedHasBeenSet = false;
124
126 bool m_aliasesHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace ECRPublic
131} // namespace Aws
void SetRegistryArn(const char *value)
Definition Registry.h:65
void SetRegistryId(const char *value)
Definition Registry.h:51
void SetRegistryArn(Aws::String &&value)
Definition Registry.h:64
AWS_ECRPUBLIC_API Registry(Aws::Utils::Json::JsonView jsonValue)
Registry & WithRegistryId(Aws::String &&value)
Definition Registry.h:53
const Aws::String & GetRegistryId() const
Definition Registry.h:47
void SetAliases(const Aws::Vector< RegistryAlias > &value)
Definition Registry.h:104
Registry & WithRegistryArn(const char *value)
Definition Registry.h:68
Registry & WithAliases(Aws::Vector< RegistryAlias > &&value)
Definition Registry.h:107
const Aws::String & GetRegistryUri() const
Definition Registry.h:76
Registry & WithRegistryArn(const Aws::String &value)
Definition Registry.h:66
Registry & AddAliases(const RegistryAlias &value)
Definition Registry.h:108
const Aws::String & GetRegistryArn() const
Definition Registry.h:61
Registry & AddAliases(RegistryAlias &&value)
Definition Registry.h:109
void SetRegistryId(const Aws::String &value)
Definition Registry.h:49
void SetRegistryArn(const Aws::String &value)
Definition Registry.h:63
AWS_ECRPUBLIC_API Registry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RegistryUriHasBeenSet() const
Definition Registry.h:77
const Aws::Vector< RegistryAlias > & GetAliases() const
Definition Registry.h:102
AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const
Registry & WithRegistryUri(const Aws::String &value)
Definition Registry.h:81
Registry & WithRegistryUri(Aws::String &&value)
Definition Registry.h:82
void SetRegistryId(Aws::String &&value)
Definition Registry.h:50
bool RegistryIdHasBeenSet() const
Definition Registry.h:48
void SetVerified(bool value)
Definition Registry.h:94
void SetAliases(Aws::Vector< RegistryAlias > &&value)
Definition Registry.h:105
Registry & WithRegistryId(const Aws::String &value)
Definition Registry.h:52
AWS_ECRPUBLIC_API Registry()
Registry & WithRegistryUri(const char *value)
Definition Registry.h:83
void SetRegistryUri(Aws::String &&value)
Definition Registry.h:79
Registry & WithRegistryArn(Aws::String &&value)
Definition Registry.h:67
bool RegistryArnHasBeenSet() const
Definition Registry.h:62
Registry & WithAliases(const Aws::Vector< RegistryAlias > &value)
Definition Registry.h:106
void SetRegistryUri(const char *value)
Definition Registry.h:80
Registry & WithVerified(bool value)
Definition Registry.h:95
Registry & WithRegistryId(const char *value)
Definition Registry.h:54
void SetRegistryUri(const Aws::String &value)
Definition Registry.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue