AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
S3EncryptionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/synthetics/Synthetics_EXPORTS.h>
9#include <aws/synthetics/model/EncryptionMode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Synthetics {
21namespace Model {
22
33 public:
34 AWS_SYNTHETICS_API S3EncryptionConfig() = default;
35 AWS_SYNTHETICS_API S3EncryptionConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline EncryptionMode GetEncryptionMode() const { return m_encryptionMode; }
48 inline bool EncryptionModeHasBeenSet() const { return m_encryptionModeHasBeenSet; }
49 inline void SetEncryptionMode(EncryptionMode value) {
50 m_encryptionModeHasBeenSet = true;
51 m_encryptionMode = value;
52 }
54 SetEncryptionMode(value);
55 return *this;
56 }
58
60
64 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
65 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
66 template <typename KmsKeyArnT = Aws::String>
67 void SetKmsKeyArn(KmsKeyArnT&& value) {
68 m_kmsKeyArnHasBeenSet = true;
69 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
70 }
71 template <typename KmsKeyArnT = Aws::String>
72 S3EncryptionConfig& WithKmsKeyArn(KmsKeyArnT&& value) {
73 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
74 return *this;
75 }
77 private:
79
80 Aws::String m_kmsKeyArn;
81 bool m_encryptionModeHasBeenSet = false;
82 bool m_kmsKeyArnHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Synthetics
87} // namespace Aws
S3EncryptionConfig & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_SYNTHETICS_API S3EncryptionConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
S3EncryptionConfig & WithEncryptionMode(EncryptionMode value)
AWS_SYNTHETICS_API S3EncryptionConfig()=default
AWS_SYNTHETICS_API S3EncryptionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue