AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
S3EncryptionSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
9#include <aws/mediaconvert/model/S3ServerSideEncryptionType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaConvert {
21namespace Model {
22
30 public:
31 AWS_MEDIACONVERT_API S3EncryptionSettings() = default;
32 AWS_MEDIACONVERT_API S3EncryptionSettings(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
49 inline S3ServerSideEncryptionType GetEncryptionType() const { return m_encryptionType; }
50 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
52 m_encryptionTypeHasBeenSet = true;
53 m_encryptionType = value;
54 }
56 SetEncryptionType(value);
57 return *this;
58 }
60
62
71 inline const Aws::String& GetKmsEncryptionContext() const { return m_kmsEncryptionContext; }
72 inline bool KmsEncryptionContextHasBeenSet() const { return m_kmsEncryptionContextHasBeenSet; }
73 template <typename KmsEncryptionContextT = Aws::String>
74 void SetKmsEncryptionContext(KmsEncryptionContextT&& value) {
75 m_kmsEncryptionContextHasBeenSet = true;
76 m_kmsEncryptionContext = std::forward<KmsEncryptionContextT>(value);
77 }
78 template <typename KmsEncryptionContextT = Aws::String>
79 S3EncryptionSettings& WithKmsEncryptionContext(KmsEncryptionContextT&& value) {
80 SetKmsEncryptionContext(std::forward<KmsEncryptionContextT>(value));
81 return *this;
82 }
84
86
94 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
95 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
96 template <typename KmsKeyArnT = Aws::String>
97 void SetKmsKeyArn(KmsKeyArnT&& value) {
98 m_kmsKeyArnHasBeenSet = true;
99 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
100 }
101 template <typename KmsKeyArnT = Aws::String>
102 S3EncryptionSettings& WithKmsKeyArn(KmsKeyArnT&& value) {
103 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
104 return *this;
105 }
107 private:
109
110 Aws::String m_kmsEncryptionContext;
111
112 Aws::String m_kmsKeyArn;
113 bool m_encryptionTypeHasBeenSet = false;
114 bool m_kmsEncryptionContextHasBeenSet = false;
115 bool m_kmsKeyArnHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace MediaConvert
120} // namespace Aws
void SetEncryptionType(S3ServerSideEncryptionType value)
void SetKmsEncryptionContext(KmsEncryptionContextT &&value)
S3EncryptionSettings & WithEncryptionType(S3ServerSideEncryptionType value)
AWS_MEDIACONVERT_API S3EncryptionSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
S3ServerSideEncryptionType GetEncryptionType() const
AWS_MEDIACONVERT_API S3EncryptionSettings()=default
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
S3EncryptionSettings & WithKmsEncryptionContext(KmsEncryptionContextT &&value)
S3EncryptionSettings & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_MEDIACONVERT_API S3EncryptionSettings(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue