AWS SDK for C++

AWS SDK for C++ Version 1.11.643

Loading...
Searching...
No Matches
UpdateEncryptionConfigurationRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/model/EncryptionType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOT_API UpdateEncryptionConfigurationRequest() = default;
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 "UpdateEncryptionConfiguration"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
35
37
40 inline EncryptionType GetEncryptionType() const { return m_encryptionType; }
41 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
42 inline void SetEncryptionType(EncryptionType value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
45
47
50 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
51 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
52 template<typename KmsKeyArnT = Aws::String>
53 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
54 template<typename KmsKeyArnT = Aws::String>
55 UpdateEncryptionConfigurationRequest& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
57
59
63 inline const Aws::String& GetKmsAccessRoleArn() const { return m_kmsAccessRoleArn; }
64 inline bool KmsAccessRoleArnHasBeenSet() const { return m_kmsAccessRoleArnHasBeenSet; }
65 template<typename KmsAccessRoleArnT = Aws::String>
66 void SetKmsAccessRoleArn(KmsAccessRoleArnT&& value) { m_kmsAccessRoleArnHasBeenSet = true; m_kmsAccessRoleArn = std::forward<KmsAccessRoleArnT>(value); }
67 template<typename KmsAccessRoleArnT = Aws::String>
68 UpdateEncryptionConfigurationRequest& WithKmsAccessRoleArn(KmsAccessRoleArnT&& value) { SetKmsAccessRoleArn(std::forward<KmsAccessRoleArnT>(value)); return *this;}
70 private:
71
73 bool m_encryptionTypeHasBeenSet = false;
74
75 Aws::String m_kmsKeyArn;
76 bool m_kmsKeyArnHasBeenSet = false;
77
78 Aws::String m_kmsAccessRoleArn;
79 bool m_kmsAccessRoleArnHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace IoT
84} // namespace Aws
UpdateEncryptionConfigurationRequest & WithKmsKeyArn(KmsKeyArnT &&value)
UpdateEncryptionConfigurationRequest & WithKmsAccessRoleArn(KmsAccessRoleArnT &&value)
UpdateEncryptionConfigurationRequest & WithEncryptionType(EncryptionType value)
AWS_IOT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String