AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutClusterPolicyRequest.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Kafka
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_KAFKA_API PutClusterPolicyRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "PutClusterPolicy"; }
31
32 AWS_KAFKA_API Aws::String SerializePayload() const override;
33
34
36
41 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
42 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
43 template<typename ClusterArnT = Aws::String>
44 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
45 template<typename ClusterArnT = Aws::String>
46 PutClusterPolicyRequest& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
48
50
55 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
56 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
57 template<typename CurrentVersionT = Aws::String>
58 void SetCurrentVersion(CurrentVersionT&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::forward<CurrentVersionT>(value); }
59 template<typename CurrentVersionT = Aws::String>
60 PutClusterPolicyRequest& WithCurrentVersion(CurrentVersionT&& value) { SetCurrentVersion(std::forward<CurrentVersionT>(value)); return *this;}
62
64
69 inline const Aws::String& GetPolicy() const { return m_policy; }
70 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
71 template<typename PolicyT = Aws::String>
72 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
73 template<typename PolicyT = Aws::String>
74 PutClusterPolicyRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
76 private:
77
78 Aws::String m_clusterArn;
79 bool m_clusterArnHasBeenSet = false;
80
81 Aws::String m_currentVersion;
82 bool m_currentVersionHasBeenSet = false;
83
84 Aws::String m_policy;
85 bool m_policyHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Kafka
90} // namespace Aws
virtual const char * GetServiceRequestName() const override
PutClusterPolicyRequest & WithClusterArn(ClusterArnT &&value)
AWS_KAFKA_API PutClusterPolicyRequest()=default
PutClusterPolicyRequest & WithPolicy(PolicyT &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
PutClusterPolicyRequest & WithCurrentVersion(CurrentVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String