AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EncryptionConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecr/ECR_EXPORTS.h>
9#include <aws/ecr/model/EncryptionType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECR {
21namespace Model {
22
40 public:
41 AWS_ECR_API EncryptionConfiguration() = default;
45
47
66 inline EncryptionType GetEncryptionType() const { return m_encryptionType; }
67 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
68 inline void SetEncryptionType(EncryptionType value) {
69 m_encryptionTypeHasBeenSet = true;
70 m_encryptionType = value;
71 }
73 SetEncryptionType(value);
74 return *this;
75 }
77
79
85 inline const Aws::String& GetKmsKey() const { return m_kmsKey; }
86 inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
87 template <typename KmsKeyT = Aws::String>
88 void SetKmsKey(KmsKeyT&& value) {
89 m_kmsKeyHasBeenSet = true;
90 m_kmsKey = std::forward<KmsKeyT>(value);
91 }
92 template <typename KmsKeyT = Aws::String>
94 SetKmsKey(std::forward<KmsKeyT>(value));
95 return *this;
96 }
98 private:
100
101 Aws::String m_kmsKey;
102 bool m_encryptionTypeHasBeenSet = false;
103 bool m_kmsKeyHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ECR
108} // namespace Aws
EncryptionConfiguration & WithEncryptionType(EncryptionType value)
AWS_ECR_API EncryptionConfiguration()=default
EncryptionConfiguration & WithKmsKey(KmsKeyT &&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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue