AWS SDK for C++  1.9.14
AWS SDK for C++
PutDefaultEncryptionConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoTSiteWise
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "PutDefaultEncryptionConfiguration"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
40 
44  inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
45 
49  inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
50 
54  inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
55 
59  inline PutDefaultEncryptionConfigurationRequest& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
60 
64  inline PutDefaultEncryptionConfigurationRequest& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
65 
66 
71  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
72 
77  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
78 
83  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
84 
89  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
90 
95  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
96 
101  inline PutDefaultEncryptionConfigurationRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
102 
107  inline PutDefaultEncryptionConfigurationRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
108 
113  inline PutDefaultEncryptionConfigurationRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
114 
115  private:
116 
117  EncryptionType m_encryptionType;
118  bool m_encryptionTypeHasBeenSet;
119 
120  Aws::String m_kmsKeyId;
121  bool m_kmsKeyIdHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace IoTSiteWise
126 } // namespace Aws
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: PutDefaultEncryptionConfigurationRequest.h:83
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::EncryptionTypeHasBeenSet
bool EncryptionTypeHasBeenSet() const
Definition: PutDefaultEncryptionConfigurationRequest.h:44
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: PutDefaultEncryptionConfigurationRequest.h:71
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::WithKmsKeyId
PutDefaultEncryptionConfigurationRequest & WithKmsKeyId(Aws::String &&value)
Definition: PutDefaultEncryptionConfigurationRequest.h:107
IoTSiteWise_EXPORTS.h
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
EncryptionType.h
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: PutDefaultEncryptionConfigurationRequest.h:77
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::WithKmsKeyId
PutDefaultEncryptionConfigurationRequest & WithKmsKeyId(const char *value)
Definition: PutDefaultEncryptionConfigurationRequest.h:113
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::WithEncryptionType
PutDefaultEncryptionConfigurationRequest & WithEncryptionType(EncryptionType &&value)
Definition: PutDefaultEncryptionConfigurationRequest.h:64
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::GetEncryptionType
const EncryptionType & GetEncryptionType() const
Definition: PutDefaultEncryptionConfigurationRequest.h:39
Aws::IoTSiteWise::Model::EncryptionType
EncryptionType
Definition: EncryptionType.h:17
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::SetEncryptionType
void SetEncryptionType(const EncryptionType &value)
Definition: PutDefaultEncryptionConfigurationRequest.h:49
AWSString.h
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::WithKmsKeyId
PutDefaultEncryptionConfigurationRequest & WithKmsKeyId(const Aws::String &value)
Definition: PutDefaultEncryptionConfigurationRequest.h:101
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest
Definition: PutDefaultEncryptionConfigurationRequest.h:23
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: PutDefaultEncryptionConfigurationRequest.h:95
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::WithEncryptionType
PutDefaultEncryptionConfigurationRequest & WithEncryptionType(const EncryptionType &value)
Definition: PutDefaultEncryptionConfigurationRequest.h:59
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutDefaultEncryptionConfigurationRequest.h:31
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::SetEncryptionType
void SetEncryptionType(EncryptionType &&value)
Definition: PutDefaultEncryptionConfigurationRequest.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::PutDefaultEncryptionConfigurationRequest
PutDefaultEncryptionConfigurationRequest()
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::PutDefaultEncryptionConfigurationRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: PutDefaultEncryptionConfigurationRequest.h:89