AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EncryptionConfiguration.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/ecr/model/EncryptionType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ECR
23{
24namespace Model
25{
26
44 {
45 public:
50
51
53
72 inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
73 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
74 inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
75 inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
76 inline EncryptionConfiguration& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
77 inline EncryptionConfiguration& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
79
81
87 inline const Aws::String& GetKmsKey() const{ return m_kmsKey; }
88 inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
89 inline void SetKmsKey(const Aws::String& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = value; }
90 inline void SetKmsKey(Aws::String&& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = std::move(value); }
91 inline void SetKmsKey(const char* value) { m_kmsKeyHasBeenSet = true; m_kmsKey.assign(value); }
92 inline EncryptionConfiguration& WithKmsKey(const Aws::String& value) { SetKmsKey(value); return *this;}
93 inline EncryptionConfiguration& WithKmsKey(Aws::String&& value) { SetKmsKey(std::move(value)); return *this;}
94 inline EncryptionConfiguration& WithKmsKey(const char* value) { SetKmsKey(value); return *this;}
96 private:
97
98 EncryptionType m_encryptionType;
99 bool m_encryptionTypeHasBeenSet = false;
100
101 Aws::String m_kmsKey;
102 bool m_kmsKeyHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace ECR
107} // namespace Aws
EncryptionConfiguration & WithEncryptionType(EncryptionType &&value)
void SetEncryptionType(const EncryptionType &value)
const EncryptionType & GetEncryptionType() const
EncryptionConfiguration & WithKmsKey(Aws::String &&value)
EncryptionConfiguration & WithEncryptionType(const EncryptionType &value)
EncryptionConfiguration & WithKmsKey(const char *value)
AWS_ECR_API EncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECR_API EncryptionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
EncryptionConfiguration & WithKmsKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue