AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3EncryptionConfig.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/synthetics/model/EncryptionMode.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 Synthetics
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_SYNTHETICS_API S3EncryptionConfig();
40 AWS_SYNTHETICS_API S3EncryptionConfig(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
53 inline const EncryptionMode& GetEncryptionMode() const{ return m_encryptionMode; }
54 inline bool EncryptionModeHasBeenSet() const { return m_encryptionModeHasBeenSet; }
55 inline void SetEncryptionMode(const EncryptionMode& value) { m_encryptionModeHasBeenSet = true; m_encryptionMode = value; }
56 inline void SetEncryptionMode(EncryptionMode&& value) { m_encryptionModeHasBeenSet = true; m_encryptionMode = std::move(value); }
57 inline S3EncryptionConfig& WithEncryptionMode(const EncryptionMode& value) { SetEncryptionMode(value); return *this;}
58 inline S3EncryptionConfig& WithEncryptionMode(EncryptionMode&& value) { SetEncryptionMode(std::move(value)); return *this;}
60
62
66 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
67 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
68 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
69 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
70 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
71 inline S3EncryptionConfig& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
72 inline S3EncryptionConfig& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
73 inline S3EncryptionConfig& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
75 private:
76
77 EncryptionMode m_encryptionMode;
78 bool m_encryptionModeHasBeenSet = false;
79
80 Aws::String m_kmsKeyArn;
81 bool m_kmsKeyArnHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Synthetics
86} // namespace Aws
AWS_SYNTHETICS_API S3EncryptionConfig(Aws::Utils::Json::JsonView jsonValue)
S3EncryptionConfig & WithKmsKeyArn(Aws::String &&value)
S3EncryptionConfig & WithKmsKeyArn(const char *value)
void SetKmsKeyArn(const Aws::String &value)
void SetEncryptionMode(EncryptionMode &&value)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
S3EncryptionConfig & WithEncryptionMode(EncryptionMode &&value)
void SetEncryptionMode(const EncryptionMode &value)
S3EncryptionConfig & WithEncryptionMode(const EncryptionMode &value)
const EncryptionMode & GetEncryptionMode() const
AWS_SYNTHETICS_API S3EncryptionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
S3EncryptionConfig & WithKmsKeyArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue