AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
46 AWS_ECR_API EncryptionConfiguration() = default;
50
51
53
72 inline EncryptionType GetEncryptionType() const { return m_encryptionType; }
73 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
74 inline void SetEncryptionType(EncryptionType value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
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) { m_kmsKeyHasBeenSet = true; m_kmsKey = std::forward<KmsKeyT>(value); }
89 template<typename KmsKeyT = Aws::String>
90 EncryptionConfiguration& WithKmsKey(KmsKeyT&& value) { SetKmsKey(std::forward<KmsKeyT>(value)); return *this;}
92 private:
93
95 bool m_encryptionTypeHasBeenSet = false;
96
97 Aws::String m_kmsKey;
98 bool m_kmsKeyHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace ECR
103} // 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