AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
DeleteTopicRequest.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
11#include <utility>
12
13namespace Aws {
14namespace Kafka {
15namespace Model {
16
20 public:
21 AWS_KAFKA_API DeleteTopicRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteTopic"; }
28
29 AWS_KAFKA_API Aws::String SerializePayload() const override;
30
32
38 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
39 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
40 template <typename ClusterArnT = Aws::String>
41 void SetClusterArn(ClusterArnT&& value) {
42 m_clusterArnHasBeenSet = true;
43 m_clusterArn = std::forward<ClusterArnT>(value);
44 }
45 template <typename ClusterArnT = Aws::String>
46 DeleteTopicRequest& WithClusterArn(ClusterArnT&& value) {
47 SetClusterArn(std::forward<ClusterArnT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetTopicName() const { return m_topicName; }
59 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
60 template <typename TopicNameT = Aws::String>
61 void SetTopicName(TopicNameT&& value) {
62 m_topicNameHasBeenSet = true;
63 m_topicName = std::forward<TopicNameT>(value);
64 }
65 template <typename TopicNameT = Aws::String>
66 DeleteTopicRequest& WithTopicName(TopicNameT&& value) {
67 SetTopicName(std::forward<TopicNameT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_clusterArn;
73
74 Aws::String m_topicName;
75 bool m_clusterArnHasBeenSet = false;
76 bool m_topicNameHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Kafka
81} // namespace Aws
const Aws::String & GetClusterArn() const
const Aws::String & GetTopicName() const
void SetClusterArn(ClusterArnT &&value)
DeleteTopicRequest & WithTopicName(TopicNameT &&value)
DeleteTopicRequest & WithClusterArn(ClusterArnT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KAFKA_API Aws::String SerializePayload() const override
AWS_KAFKA_API DeleteTopicRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String