AWS SDK for C++  1.9.108
AWS SDK for C++
DefaultServerSideEncryption.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GuardDuty
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetEncryptionType() const{ return m_encryptionType; }
47 
51  inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
52 
56  inline void SetEncryptionType(const Aws::String& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
57 
61  inline void SetEncryptionType(Aws::String&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
62 
66  inline void SetEncryptionType(const char* value) { m_encryptionTypeHasBeenSet = true; m_encryptionType.assign(value); }
67 
71  inline DefaultServerSideEncryption& WithEncryptionType(const Aws::String& value) { SetEncryptionType(value); return *this;}
72 
76  inline DefaultServerSideEncryption& WithEncryptionType(Aws::String&& value) { SetEncryptionType(std::move(value)); return *this;}
77 
81  inline DefaultServerSideEncryption& WithEncryptionType(const char* value) { SetEncryptionType(value); return *this;}
82 
83 
88  inline const Aws::String& GetKmsMasterKeyArn() const{ return m_kmsMasterKeyArn; }
89 
94  inline bool KmsMasterKeyArnHasBeenSet() const { return m_kmsMasterKeyArnHasBeenSet; }
95 
100  inline void SetKmsMasterKeyArn(const Aws::String& value) { m_kmsMasterKeyArnHasBeenSet = true; m_kmsMasterKeyArn = value; }
101 
106  inline void SetKmsMasterKeyArn(Aws::String&& value) { m_kmsMasterKeyArnHasBeenSet = true; m_kmsMasterKeyArn = std::move(value); }
107 
112  inline void SetKmsMasterKeyArn(const char* value) { m_kmsMasterKeyArnHasBeenSet = true; m_kmsMasterKeyArn.assign(value); }
113 
118  inline DefaultServerSideEncryption& WithKmsMasterKeyArn(const Aws::String& value) { SetKmsMasterKeyArn(value); return *this;}
119 
124  inline DefaultServerSideEncryption& WithKmsMasterKeyArn(Aws::String&& value) { SetKmsMasterKeyArn(std::move(value)); return *this;}
125 
130  inline DefaultServerSideEncryption& WithKmsMasterKeyArn(const char* value) { SetKmsMasterKeyArn(value); return *this;}
131 
132  private:
133 
134  Aws::String m_encryptionType;
135  bool m_encryptionTypeHasBeenSet;
136 
137  Aws::String m_kmsMasterKeyArn;
138  bool m_kmsMasterKeyArnHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace GuardDuty
143 } // namespace Aws
Aws::GuardDuty::Model::DefaultServerSideEncryption::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::DefaultServerSideEncryption::SetKmsMasterKeyArn
void SetKmsMasterKeyArn(Aws::String &&value)
Definition: DefaultServerSideEncryption.h:106
Aws::GuardDuty::Model::DefaultServerSideEncryption::SetEncryptionType
void SetEncryptionType(Aws::String &&value)
Definition: DefaultServerSideEncryption.h:61
Aws::GuardDuty::Model::DefaultServerSideEncryption::WithEncryptionType
DefaultServerSideEncryption & WithEncryptionType(const char *value)
Definition: DefaultServerSideEncryption.h:81
Aws::GuardDuty::Model::DefaultServerSideEncryption::KmsMasterKeyArnHasBeenSet
bool KmsMasterKeyArnHasBeenSet() const
Definition: DefaultServerSideEncryption.h:94
Aws::GuardDuty::Model::DefaultServerSideEncryption::WithKmsMasterKeyArn
DefaultServerSideEncryption & WithKmsMasterKeyArn(const Aws::String &value)
Definition: DefaultServerSideEncryption.h:118
Aws::GuardDuty::Model::DefaultServerSideEncryption::WithKmsMasterKeyArn
DefaultServerSideEncryption & WithKmsMasterKeyArn(Aws::String &&value)
Definition: DefaultServerSideEncryption.h:124
GuardDuty_EXPORTS.h
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::DefaultServerSideEncryption::WithKmsMasterKeyArn
DefaultServerSideEncryption & WithKmsMasterKeyArn(const char *value)
Definition: DefaultServerSideEncryption.h:130
Aws::GuardDuty::Model::DefaultServerSideEncryption
Definition: DefaultServerSideEncryption.h:35
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::DefaultServerSideEncryption::operator=
DefaultServerSideEncryption & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::DefaultServerSideEncryption::SetKmsMasterKeyArn
void SetKmsMasterKeyArn(const char *value)
Definition: DefaultServerSideEncryption.h:112
Aws::GuardDuty::Model::DefaultServerSideEncryption::GetEncryptionType
const Aws::String & GetEncryptionType() const
Definition: DefaultServerSideEncryption.h:46
Aws::GuardDuty::Model::DefaultServerSideEncryption::WithEncryptionType
DefaultServerSideEncryption & WithEncryptionType(const Aws::String &value)
Definition: DefaultServerSideEncryption.h:71
Aws::GuardDuty::Model::DefaultServerSideEncryption::SetEncryptionType
void SetEncryptionType(const char *value)
Definition: DefaultServerSideEncryption.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::DefaultServerSideEncryption::SetKmsMasterKeyArn
void SetKmsMasterKeyArn(const Aws::String &value)
Definition: DefaultServerSideEncryption.h:100
Aws::GuardDuty::Model::DefaultServerSideEncryption::DefaultServerSideEncryption
DefaultServerSideEncryption()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::DefaultServerSideEncryption::DefaultServerSideEncryption
DefaultServerSideEncryption(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::DefaultServerSideEncryption::SetEncryptionType
void SetEncryptionType(const Aws::String &value)
Definition: DefaultServerSideEncryption.h:56
Aws::GuardDuty::Model::DefaultServerSideEncryption::EncryptionTypeHasBeenSet
bool EncryptionTypeHasBeenSet() const
Definition: DefaultServerSideEncryption.h:51
Aws::GuardDuty::Model::DefaultServerSideEncryption::GetKmsMasterKeyArn
const Aws::String & GetKmsMasterKeyArn() const
Definition: DefaultServerSideEncryption.h:88
Aws::GuardDuty::Model::DefaultServerSideEncryption::WithEncryptionType
DefaultServerSideEncryption & WithEncryptionType(Aws::String &&value)
Definition: DefaultServerSideEncryption.h:76