AWS SDK for C++

AWS SDK for C++ Version 1.11.688

Loading...
Searching...
No Matches
UpdateEncryptionConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/EncryptionType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IoT {
16namespace Model {
17
21 public:
22 AWS_IOT_API UpdateEncryptionConfigurationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateEncryptionConfiguration"; }
29
30 AWS_IOT_API Aws::String SerializePayload() const override;
31
33
36 inline EncryptionType GetEncryptionType() const { return m_encryptionType; }
37 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
38 inline void SetEncryptionType(EncryptionType value) {
39 m_encryptionTypeHasBeenSet = true;
40 m_encryptionType = value;
41 }
43 SetEncryptionType(value);
44 return *this;
45 }
47
49
52 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
53 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
54 template <typename KmsKeyArnT = Aws::String>
55 void SetKmsKeyArn(KmsKeyArnT&& value) {
56 m_kmsKeyArnHasBeenSet = true;
57 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
58 }
59 template <typename KmsKeyArnT = Aws::String>
61 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetKmsAccessRoleArn() const { return m_kmsAccessRoleArn; }
72 inline bool KmsAccessRoleArnHasBeenSet() const { return m_kmsAccessRoleArnHasBeenSet; }
73 template <typename KmsAccessRoleArnT = Aws::String>
74 void SetKmsAccessRoleArn(KmsAccessRoleArnT&& value) {
75 m_kmsAccessRoleArnHasBeenSet = true;
76 m_kmsAccessRoleArn = std::forward<KmsAccessRoleArnT>(value);
77 }
78 template <typename KmsAccessRoleArnT = Aws::String>
80 SetKmsAccessRoleArn(std::forward<KmsAccessRoleArnT>(value));
81 return *this;
82 }
84 private:
86 bool m_encryptionTypeHasBeenSet = false;
87
88 Aws::String m_kmsKeyArn;
89 bool m_kmsKeyArnHasBeenSet = false;
90
91 Aws::String m_kmsAccessRoleArn;
92 bool m_kmsAccessRoleArnHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace IoT
97} // 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