AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RegistryIdT = Aws::String>
50 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
51 template<typename RegistryIdT = Aws::String>
52 Registry& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetRegistryArn() const { return m_registryArn; }
60 inline bool RegistryArnHasBeenSet() const { return m_registryArnHasBeenSet; }
61 template<typename RegistryArnT = Aws::String>
62 void SetRegistryArn(RegistryArnT&& value) { m_registryArnHasBeenSet = true; m_registryArn = std::forward<RegistryArnT>(value); }
63 template<typename RegistryArnT = Aws::String>
64 Registry& WithRegistryArn(RegistryArnT&& value) { SetRegistryArn(std::forward<RegistryArnT>(value)); return *this;}
66
68
72 inline const Aws::String& GetRegistryUri() const { return m_registryUri; }
73 inline bool RegistryUriHasBeenSet() const { return m_registryUriHasBeenSet; }
74 template<typename RegistryUriT = Aws::String>
75 void SetRegistryUri(RegistryUriT&& value) { m_registryUriHasBeenSet = true; m_registryUri = std::forward<RegistryUriT>(value); }
76 template<typename RegistryUriT = Aws::String>
77 Registry& WithRegistryUri(RegistryUriT&& value) { SetRegistryUri(std::forward<RegistryUriT>(value)); return *this;}
79
81
86 inline bool GetVerified() const { return m_verified; }
87 inline bool VerifiedHasBeenSet() const { return m_verifiedHasBeenSet; }
88 inline void SetVerified(bool value) { m_verifiedHasBeenSet = true; m_verified = value; }
89 inline Registry& WithVerified(bool value) { SetVerified(value); return *this;}
91
93
96 inline const Aws::Vector<RegistryAlias>& GetAliases() const { return m_aliases; }
97 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
98 template<typename AliasesT = Aws::Vector<RegistryAlias>>
99 void SetAliases(AliasesT&& value) { m_aliasesHasBeenSet = true; m_aliases = std::forward<AliasesT>(value); }
100 template<typename AliasesT = Aws::Vector<RegistryAlias>>
101 Registry& WithAliases(AliasesT&& value) { SetAliases(std::forward<AliasesT>(value)); return *this;}
102 template<typename AliasesT = RegistryAlias>
103 Registry& AddAliases(AliasesT&& value) { m_aliasesHasBeenSet = true; m_aliases.emplace_back(std::forward<AliasesT>(value)); return *this; }
105 private:
106
107 Aws::String m_registryId;
108 bool m_registryIdHasBeenSet = false;
109
110 Aws::String m_registryArn;
111 bool m_registryArnHasBeenSet = false;
112
113 Aws::String m_registryUri;
114 bool m_registryUriHasBeenSet = false;
115
116 bool m_verified{false};
117 bool m_verifiedHasBeenSet = false;
118
120 bool m_aliasesHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace ECRPublic
125} // namespace Aws
void SetAliases(AliasesT &&value)
Definition Registry.h:99
void SetRegistryArn(RegistryArnT &&value)
Definition Registry.h:62
AWS_ECRPUBLIC_API Registry(Aws::Utils::Json::JsonView jsonValue)
void SetRegistryId(RegistryIdT &&value)
Definition Registry.h:50
const Aws::String & GetRegistryId() const
Definition Registry.h:47
Registry & WithRegistryArn(RegistryArnT &&value)
Definition Registry.h:64
const Aws::String & GetRegistryUri() const
Definition Registry.h:72
const Aws::String & GetRegistryArn() const
Definition Registry.h:59
Registry & WithRegistryUri(RegistryUriT &&value)
Definition Registry.h:77
void SetRegistryUri(RegistryUriT &&value)
Definition Registry.h:75
AWS_ECRPUBLIC_API Registry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RegistryUriHasBeenSet() const
Definition Registry.h:73
Registry & WithAliases(AliasesT &&value)
Definition Registry.h:101
const Aws::Vector< RegistryAlias > & GetAliases() const
Definition Registry.h:96
AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const
Registry & WithRegistryId(RegistryIdT &&value)
Definition Registry.h:52
AWS_ECRPUBLIC_API Registry()=default
bool RegistryIdHasBeenSet() const
Definition Registry.h:48
void SetVerified(bool value)
Definition Registry.h:88
bool RegistryArnHasBeenSet() const
Definition Registry.h:60
Registry & AddAliases(AliasesT &&value)
Definition Registry.h:103
Registry & WithVerified(bool value)
Definition Registry.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue