AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Repository.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ecr/model/ImageTagMutability.h>
11#include <aws/ecr/model/ImageScanningConfiguration.h>
12#include <aws/ecr/model/EncryptionConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ECR
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_ECR_API Repository();
39 AWS_ECR_API Repository(Aws::Utils::Json::JsonView jsonValue);
42
43
45
52 inline const Aws::String& GetRepositoryArn() const{ return m_repositoryArn; }
53 inline bool RepositoryArnHasBeenSet() const { return m_repositoryArnHasBeenSet; }
54 inline void SetRepositoryArn(const Aws::String& value) { m_repositoryArnHasBeenSet = true; m_repositoryArn = value; }
55 inline void SetRepositoryArn(Aws::String&& value) { m_repositoryArnHasBeenSet = true; m_repositoryArn = std::move(value); }
56 inline void SetRepositoryArn(const char* value) { m_repositoryArnHasBeenSet = true; m_repositoryArn.assign(value); }
57 inline Repository& WithRepositoryArn(const Aws::String& value) { SetRepositoryArn(value); return *this;}
58 inline Repository& WithRepositoryArn(Aws::String&& value) { SetRepositoryArn(std::move(value)); return *this;}
59 inline Repository& WithRepositoryArn(const char* value) { SetRepositoryArn(value); return *this;}
61
63
67 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
68 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
69 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
70 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
71 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
72 inline Repository& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
73 inline Repository& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
74 inline Repository& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
76
78
81 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
82 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
83 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
84 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
85 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
86 inline Repository& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
87 inline Repository& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
88 inline Repository& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
90
92
96 inline const Aws::String& GetRepositoryUri() const{ return m_repositoryUri; }
97 inline bool RepositoryUriHasBeenSet() const { return m_repositoryUriHasBeenSet; }
98 inline void SetRepositoryUri(const Aws::String& value) { m_repositoryUriHasBeenSet = true; m_repositoryUri = value; }
99 inline void SetRepositoryUri(Aws::String&& value) { m_repositoryUriHasBeenSet = true; m_repositoryUri = std::move(value); }
100 inline void SetRepositoryUri(const char* value) { m_repositoryUriHasBeenSet = true; m_repositoryUri.assign(value); }
101 inline Repository& WithRepositoryUri(const Aws::String& value) { SetRepositoryUri(value); return *this;}
102 inline Repository& WithRepositoryUri(Aws::String&& value) { SetRepositoryUri(std::move(value)); return *this;}
103 inline Repository& WithRepositoryUri(const char* value) { SetRepositoryUri(value); return *this;}
105
107
111 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
112 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
113 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
114 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
115 inline Repository& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
116 inline Repository& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
118
120
123 inline const ImageTagMutability& GetImageTagMutability() const{ return m_imageTagMutability; }
124 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
125 inline void SetImageTagMutability(const ImageTagMutability& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
126 inline void SetImageTagMutability(ImageTagMutability&& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = std::move(value); }
127 inline Repository& WithImageTagMutability(const ImageTagMutability& value) { SetImageTagMutability(value); return *this;}
128 inline Repository& WithImageTagMutability(ImageTagMutability&& value) { SetImageTagMutability(std::move(value)); return *this;}
130
132
133 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const{ return m_imageScanningConfiguration; }
134 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
135 inline void SetImageScanningConfiguration(const ImageScanningConfiguration& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = value; }
136 inline void SetImageScanningConfiguration(ImageScanningConfiguration&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::move(value); }
140
142
146 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
147 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
148 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
149 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
153 private:
154
155 Aws::String m_repositoryArn;
156 bool m_repositoryArnHasBeenSet = false;
157
158 Aws::String m_registryId;
159 bool m_registryIdHasBeenSet = false;
160
161 Aws::String m_repositoryName;
162 bool m_repositoryNameHasBeenSet = false;
163
164 Aws::String m_repositoryUri;
165 bool m_repositoryUriHasBeenSet = false;
166
167 Aws::Utils::DateTime m_createdAt;
168 bool m_createdAtHasBeenSet = false;
169
170 ImageTagMutability m_imageTagMutability;
171 bool m_imageTagMutabilityHasBeenSet = false;
172
173 ImageScanningConfiguration m_imageScanningConfiguration;
174 bool m_imageScanningConfigurationHasBeenSet = false;
175
176 EncryptionConfiguration m_encryptionConfiguration;
177 bool m_encryptionConfigurationHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace ECR
182} // namespace Aws
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Repository.h:113
bool CreatedAtHasBeenSet() const
Definition Repository.h:112
void SetRepositoryName(const char *value)
Definition Repository.h:85
void SetRepositoryName(const Aws::String &value)
Definition Repository.h:83
const ImageTagMutability & GetImageTagMutability() const
Definition Repository.h:123
const Aws::String & GetRepositoryName() const
Definition Repository.h:81
Repository & WithImageTagMutability(ImageTagMutability &&value)
Definition Repository.h:128
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Repository.h:114
Repository & WithRepositoryUri(const Aws::String &value)
Definition Repository.h:101
void SetImageScanningConfiguration(const ImageScanningConfiguration &value)
Definition Repository.h:135
void SetRepositoryArn(const Aws::String &value)
Definition Repository.h:54
void SetRepositoryArn(Aws::String &&value)
Definition Repository.h:55
Repository & WithRegistryId(const char *value)
Definition Repository.h:74
Repository & WithRepositoryName(const char *value)
Definition Repository.h:88
AWS_ECR_API Repository(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API Repository & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRegistryId(Aws::String &&value)
Definition Repository.h:70
Repository & WithRepositoryArn(Aws::String &&value)
Definition Repository.h:58
const Aws::String & GetRegistryId() const
Definition Repository.h:67
Repository & WithImageScanningConfiguration(ImageScanningConfiguration &&value)
Definition Repository.h:138
const Aws::String & GetRepositoryUri() const
Definition Repository.h:96
Repository & WithRepositoryUri(const char *value)
Definition Repository.h:103
bool RepositoryArnHasBeenSet() const
Definition Repository.h:53
Repository & WithRegistryId(const Aws::String &value)
Definition Repository.h:72
void SetRepositoryUri(Aws::String &&value)
Definition Repository.h:99
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetImageTagMutability(ImageTagMutability &&value)
Definition Repository.h:126
Repository & WithImageScanningConfiguration(const ImageScanningConfiguration &value)
Definition Repository.h:137
void SetRegistryId(const char *value)
Definition Repository.h:71
const Aws::String & GetRepositoryArn() const
Definition Repository.h:52
Repository & WithEncryptionConfiguration(EncryptionConfiguration &&value)
Definition Repository.h:151
void SetRepositoryUri(const char *value)
Definition Repository.h:100
Repository & WithRepositoryName(Aws::String &&value)
Definition Repository.h:87
Repository & WithEncryptionConfiguration(const EncryptionConfiguration &value)
Definition Repository.h:150
void SetImageScanningConfiguration(ImageScanningConfiguration &&value)
Definition Repository.h:136
void SetRegistryId(const Aws::String &value)
Definition Repository.h:69
Repository & WithRegistryId(Aws::String &&value)
Definition Repository.h:73
bool RepositoryUriHasBeenSet() const
Definition Repository.h:97
Repository & WithRepositoryArn(const char *value)
Definition Repository.h:59
bool ImageTagMutabilityHasBeenSet() const
Definition Repository.h:124
Repository & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Repository.h:115
void SetRepositoryName(Aws::String &&value)
Definition Repository.h:84
void SetRepositoryArn(const char *value)
Definition Repository.h:56
Repository & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Repository.h:116
void SetImageTagMutability(const ImageTagMutability &value)
Definition Repository.h:125
bool ImageScanningConfigurationHasBeenSet() const
Definition Repository.h:134
Repository & WithRepositoryUri(Aws::String &&value)
Definition Repository.h:102
const ImageScanningConfiguration & GetImageScanningConfiguration() const
Definition Repository.h:133
Repository & WithRepositoryName(const Aws::String &value)
Definition Repository.h:86
Repository & WithImageTagMutability(const ImageTagMutability &value)
Definition Repository.h:127
const EncryptionConfiguration & GetEncryptionConfiguration() const
Definition Repository.h:146
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
Definition Repository.h:148
bool RegistryIdHasBeenSet() const
Definition Repository.h:68
Repository & WithRepositoryArn(const Aws::String &value)
Definition Repository.h:57
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
Definition Repository.h:149
void SetRepositoryUri(const Aws::String &value)
Definition Repository.h:98
bool RepositoryNameHasBeenSet() const
Definition Repository.h:82
bool EncryptionConfigurationHasBeenSet() const
Definition Repository.h:147
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Repository.h:111
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue