AWS SDK for C++  1.9.159
AWS SDK for C++
S3EncryptionSettings.h
Go to the documentation of this file.
1 
6 #pragma once
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 MediaConvert
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
55  inline const S3ServerSideEncryptionType& GetEncryptionType() const{ return m_encryptionType; }
56 
70  inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
71 
85  inline void SetEncryptionType(const S3ServerSideEncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
86 
100  inline void SetEncryptionType(S3ServerSideEncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
101 
115  inline S3EncryptionSettings& WithEncryptionType(const S3ServerSideEncryptionType& value) { SetEncryptionType(value); return *this;}
116 
130  inline S3EncryptionSettings& WithEncryptionType(S3ServerSideEncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
131 
132 
143  inline const Aws::String& GetKmsEncryptionContext() const{ return m_kmsEncryptionContext; }
144 
155  inline bool KmsEncryptionContextHasBeenSet() const { return m_kmsEncryptionContextHasBeenSet; }
156 
167  inline void SetKmsEncryptionContext(const Aws::String& value) { m_kmsEncryptionContextHasBeenSet = true; m_kmsEncryptionContext = value; }
168 
179  inline void SetKmsEncryptionContext(Aws::String&& value) { m_kmsEncryptionContextHasBeenSet = true; m_kmsEncryptionContext = std::move(value); }
180 
191  inline void SetKmsEncryptionContext(const char* value) { m_kmsEncryptionContextHasBeenSet = true; m_kmsEncryptionContext.assign(value); }
192 
203  inline S3EncryptionSettings& WithKmsEncryptionContext(const Aws::String& value) { SetKmsEncryptionContext(value); return *this;}
204 
215  inline S3EncryptionSettings& WithKmsEncryptionContext(Aws::String&& value) { SetKmsEncryptionContext(std::move(value)); return *this;}
216 
227  inline S3EncryptionSettings& WithKmsEncryptionContext(const char* value) { SetKmsEncryptionContext(value); return *this;}
228 
229 
239  inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
240 
250  inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
251 
261  inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
262 
272  inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
273 
283  inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
284 
294  inline S3EncryptionSettings& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
295 
305  inline S3EncryptionSettings& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
306 
316  inline S3EncryptionSettings& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
317 
318  private:
319 
320  S3ServerSideEncryptionType m_encryptionType;
321  bool m_encryptionTypeHasBeenSet;
322 
323  Aws::String m_kmsEncryptionContext;
324  bool m_kmsEncryptionContextHasBeenSet;
325 
326  Aws::String m_kmsKeyArn;
327  bool m_kmsKeyArnHasBeenSet;
328  };
329 
330 } // namespace Model
331 } // namespace MediaConvert
332 } // namespace Aws
Aws::MediaConvert::Model::S3EncryptionSettings::WithKmsKeyArn
S3EncryptionSettings & WithKmsKeyArn(const char *value)
Definition: S3EncryptionSettings.h:316
Aws::MediaConvert::Model::S3EncryptionSettings::SetKmsKeyArn
void SetKmsKeyArn(Aws::String &&value)
Definition: S3EncryptionSettings.h:272
Aws::MediaConvert::Model::S3EncryptionSettings::SetKmsEncryptionContext
void SetKmsEncryptionContext(const char *value)
Definition: S3EncryptionSettings.h:191
Aws::MediaConvert::Model::S3EncryptionSettings::S3EncryptionSettings
S3EncryptionSettings()
Aws::MediaConvert::Model::S3EncryptionSettings::WithKmsKeyArn
S3EncryptionSettings & WithKmsKeyArn(Aws::String &&value)
Definition: S3EncryptionSettings.h:305
MediaConvert_EXPORTS.h
AWS_MEDIACONVERT_API
#define AWS_MEDIACONVERT_API
Definition: MediaConvert_EXPORTS.h:28
Aws::MediaConvert::Model::S3EncryptionSettings::KmsEncryptionContextHasBeenSet
bool KmsEncryptionContextHasBeenSet() const
Definition: S3EncryptionSettings.h:155
Aws::MediaConvert::Model::S3EncryptionSettings::SetKmsEncryptionContext
void SetKmsEncryptionContext(const Aws::String &value)
Definition: S3EncryptionSettings.h:167
Aws::MediaConvert::Model::S3EncryptionSettings::SetKmsKeyArn
void SetKmsKeyArn(const Aws::String &value)
Definition: S3EncryptionSettings.h:261
Aws::MediaConvert::Model::S3EncryptionSettings::WithEncryptionType
S3EncryptionSettings & WithEncryptionType(const S3ServerSideEncryptionType &value)
Definition: S3EncryptionSettings.h:115
Aws::MediaConvert::Model::S3EncryptionSettings::SetEncryptionType
void SetEncryptionType(const S3ServerSideEncryptionType &value)
Definition: S3EncryptionSettings.h:85
Aws::MediaConvert::Model::S3EncryptionSettings::SetKmsKeyArn
void SetKmsKeyArn(const char *value)
Definition: S3EncryptionSettings.h:283
Aws::MediaConvert::Model::S3EncryptionSettings::WithKmsEncryptionContext
S3EncryptionSettings & WithKmsEncryptionContext(const char *value)
Definition: S3EncryptionSettings.h:227
Aws::MediaConvert::Model::S3EncryptionSettings::WithEncryptionType
S3EncryptionSettings & WithEncryptionType(S3ServerSideEncryptionType &&value)
Definition: S3EncryptionSettings.h:130
Aws::MediaConvert::Model::S3EncryptionSettings::GetEncryptionType
const S3ServerSideEncryptionType & GetEncryptionType() const
Definition: S3EncryptionSettings.h:55
S3ServerSideEncryptionType.h
Aws::MediaConvert::Model::S3EncryptionSettings::SetKmsEncryptionContext
void SetKmsEncryptionContext(Aws::String &&value)
Definition: S3EncryptionSettings.h:179
Aws::MediaConvert::Model::S3EncryptionSettings::SetEncryptionType
void SetEncryptionType(S3ServerSideEncryptionType &&value)
Definition: S3EncryptionSettings.h:100
Aws::MediaConvert::Model::S3EncryptionSettings::S3EncryptionSettings
S3EncryptionSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::MediaConvert::Model::S3EncryptionSettings::WithKmsEncryptionContext
S3EncryptionSettings & WithKmsEncryptionContext(Aws::String &&value)
Definition: S3EncryptionSettings.h:215
Aws::MediaConvert::Model::S3EncryptionSettings::GetKmsKeyArn
const Aws::String & GetKmsKeyArn() const
Definition: S3EncryptionSettings.h:239
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MediaConvert::Model::S3EncryptionSettings::KmsKeyArnHasBeenSet
bool KmsKeyArnHasBeenSet() const
Definition: S3EncryptionSettings.h:250
Aws::MediaConvert::Model::S3EncryptionSettings::GetKmsEncryptionContext
const Aws::String & GetKmsEncryptionContext() const
Definition: S3EncryptionSettings.h:143
Aws::MediaConvert::Model::S3EncryptionSettings::WithKmsEncryptionContext
S3EncryptionSettings & WithKmsEncryptionContext(const Aws::String &value)
Definition: S3EncryptionSettings.h:203
Aws::MediaConvert::Model::S3EncryptionSettings::EncryptionTypeHasBeenSet
bool EncryptionTypeHasBeenSet() const
Definition: S3EncryptionSettings.h:70
Aws::MediaConvert::Model::S3EncryptionSettings::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::MediaConvert::Model::S3EncryptionSettings::WithKmsKeyArn
S3EncryptionSettings & WithKmsKeyArn(const Aws::String &value)
Definition: S3EncryptionSettings.h:294
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaConvert::Model::S3EncryptionSettings::operator=
S3EncryptionSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MediaConvert::Model::S3EncryptionSettings
Definition: S3EncryptionSettings.h:34
Aws::MediaConvert::Model::S3ServerSideEncryptionType
S3ServerSideEncryptionType
Definition: S3ServerSideEncryptionType.h:17