AWS SDK for C++  1.9.108
AWS SDK for C++
EncryptionConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECR
23 {
24 namespace Model
25 {
26 
44  {
45  public:
50 
51 
71  inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
72 
92  inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
93 
113  inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
114 
134  inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
135 
155  inline EncryptionConfiguration& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
156 
176  inline EncryptionConfiguration& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
177 
178 
185  inline const Aws::String& GetKmsKey() const{ return m_kmsKey; }
186 
193  inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
194 
201  inline void SetKmsKey(const Aws::String& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = value; }
202 
209  inline void SetKmsKey(Aws::String&& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = std::move(value); }
210 
217  inline void SetKmsKey(const char* value) { m_kmsKeyHasBeenSet = true; m_kmsKey.assign(value); }
218 
225  inline EncryptionConfiguration& WithKmsKey(const Aws::String& value) { SetKmsKey(value); return *this;}
226 
233  inline EncryptionConfiguration& WithKmsKey(Aws::String&& value) { SetKmsKey(std::move(value)); return *this;}
234 
241  inline EncryptionConfiguration& WithKmsKey(const char* value) { SetKmsKey(value); return *this;}
242 
243  private:
244 
245  EncryptionType m_encryptionType;
246  bool m_encryptionTypeHasBeenSet;
247 
248  Aws::String m_kmsKey;
249  bool m_kmsKeyHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace ECR
254 } // namespace Aws
Aws::ECR::Model::EncryptionConfiguration::operator=
EncryptionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::EncryptionConfiguration::GetEncryptionType
const EncryptionType & GetEncryptionType() const
Definition: EncryptionConfiguration.h:71
Aws::ECR::Model::EncryptionConfiguration::SetEncryptionType
void SetEncryptionType(const EncryptionType &value)
Definition: EncryptionConfiguration.h:113
Aws::ECR::Model::EncryptionConfiguration::WithKmsKey
EncryptionConfiguration & WithKmsKey(Aws::String &&value)
Definition: EncryptionConfiguration.h:233
Aws::ECR::Model::EncryptionConfiguration::WithKmsKey
EncryptionConfiguration & WithKmsKey(const Aws::String &value)
Definition: EncryptionConfiguration.h:225
Aws::ECR::Model::EncryptionConfiguration::EncryptionConfiguration
EncryptionConfiguration()
Aws::ECR::Model::EncryptionConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECR::Model::EncryptionConfiguration::EncryptionConfiguration
EncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::EncryptionConfiguration::SetKmsKey
void SetKmsKey(const Aws::String &value)
Definition: EncryptionConfiguration.h:201
Aws::ECR::Model::EncryptionConfiguration::SetKmsKey
void SetKmsKey(const char *value)
Definition: EncryptionConfiguration.h:217
Aws::ECR::Model::EncryptionConfiguration::WithKmsKey
EncryptionConfiguration & WithKmsKey(const char *value)
Definition: EncryptionConfiguration.h:241
EncryptionType.h
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::EncryptionConfiguration::WithEncryptionType
EncryptionConfiguration & WithEncryptionType(const EncryptionType &value)
Definition: EncryptionConfiguration.h:155
ECR_EXPORTS.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::EncryptionConfiguration
Definition: EncryptionConfiguration.h:44
Aws::ECR::Model::EncryptionConfiguration::GetKmsKey
const Aws::String & GetKmsKey() const
Definition: EncryptionConfiguration.h:185
Aws::ECR::Model::EncryptionConfiguration::SetEncryptionType
void SetEncryptionType(EncryptionType &&value)
Definition: EncryptionConfiguration.h:134
Aws::ECR::Model::EncryptionConfiguration::EncryptionTypeHasBeenSet
bool EncryptionTypeHasBeenSet() const
Definition: EncryptionConfiguration.h:92
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::EncryptionType
EncryptionType
Definition: EncryptionType.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::EncryptionConfiguration::SetKmsKey
void SetKmsKey(Aws::String &&value)
Definition: EncryptionConfiguration.h:209
Aws::ECR::Model::EncryptionConfiguration::KmsKeyHasBeenSet
bool KmsKeyHasBeenSet() const
Definition: EncryptionConfiguration.h:193
Aws::ECR::Model::EncryptionConfiguration::WithEncryptionType
EncryptionConfiguration & WithEncryptionType(EncryptionType &&value)
Definition: EncryptionConfiguration.h:176