AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateSecurityRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/ClientAuthentication.h>
11#include <aws/kafka/model/EncryptionInfo.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Kafka {
17namespace Model {
18
22 public:
23 AWS_KAFKA_API UpdateSecurityRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateSecurity"; }
30
31 AWS_KAFKA_API Aws::String SerializePayload() const override;
32
34
40 inline const ClientAuthentication& GetClientAuthentication() const { return m_clientAuthentication; }
41 inline bool ClientAuthenticationHasBeenSet() const { return m_clientAuthenticationHasBeenSet; }
42 template <typename ClientAuthenticationT = ClientAuthentication>
43 void SetClientAuthentication(ClientAuthenticationT&& value) {
44 m_clientAuthenticationHasBeenSet = true;
45 m_clientAuthentication = std::forward<ClientAuthenticationT>(value);
46 }
47 template <typename ClientAuthenticationT = ClientAuthentication>
48 UpdateSecurityRequest& WithClientAuthentication(ClientAuthenticationT&& value) {
49 SetClientAuthentication(std::forward<ClientAuthenticationT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
62 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
63 template <typename ClusterArnT = Aws::String>
64 void SetClusterArn(ClusterArnT&& value) {
65 m_clusterArnHasBeenSet = true;
66 m_clusterArn = std::forward<ClusterArnT>(value);
67 }
68 template <typename ClusterArnT = Aws::String>
69 UpdateSecurityRequest& WithClusterArn(ClusterArnT&& value) {
70 SetClusterArn(std::forward<ClusterArnT>(value));
71 return *this;
72 }
74
76
84 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
85 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
86 template <typename CurrentVersionT = Aws::String>
87 void SetCurrentVersion(CurrentVersionT&& value) {
88 m_currentVersionHasBeenSet = true;
89 m_currentVersion = std::forward<CurrentVersionT>(value);
90 }
91 template <typename CurrentVersionT = Aws::String>
92 UpdateSecurityRequest& WithCurrentVersion(CurrentVersionT&& value) {
93 SetCurrentVersion(std::forward<CurrentVersionT>(value));
94 return *this;
95 }
97
99
104 inline const EncryptionInfo& GetEncryptionInfo() const { return m_encryptionInfo; }
105 inline bool EncryptionInfoHasBeenSet() const { return m_encryptionInfoHasBeenSet; }
106 template <typename EncryptionInfoT = EncryptionInfo>
107 void SetEncryptionInfo(EncryptionInfoT&& value) {
108 m_encryptionInfoHasBeenSet = true;
109 m_encryptionInfo = std::forward<EncryptionInfoT>(value);
110 }
111 template <typename EncryptionInfoT = EncryptionInfo>
112 UpdateSecurityRequest& WithEncryptionInfo(EncryptionInfoT&& value) {
113 SetEncryptionInfo(std::forward<EncryptionInfoT>(value));
114 return *this;
115 }
117 private:
118 ClientAuthentication m_clientAuthentication;
119
120 Aws::String m_clusterArn;
121
122 Aws::String m_currentVersion;
123
124 EncryptionInfo m_encryptionInfo;
125 bool m_clientAuthenticationHasBeenSet = false;
126 bool m_clusterArnHasBeenSet = false;
127 bool m_currentVersionHasBeenSet = false;
128 bool m_encryptionInfoHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace Kafka
133} // namespace Aws
void SetClientAuthentication(ClientAuthenticationT &&value)
UpdateSecurityRequest & WithEncryptionInfo(EncryptionInfoT &&value)
UpdateSecurityRequest & WithClientAuthentication(ClientAuthenticationT &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetEncryptionInfo(EncryptionInfoT &&value)
UpdateSecurityRequest & WithCurrentVersion(CurrentVersionT &&value)
const ClientAuthentication & GetClientAuthentication() const
AWS_KAFKA_API UpdateSecurityRequest()=default
const EncryptionInfo & GetEncryptionInfo() const
void SetCurrentVersion(CurrentVersionT &&value)
UpdateSecurityRequest & WithClusterArn(ClusterArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String