AWS SDK for C++  1.9.41
AWS SDK for C++
DeleteTopicRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
8 #include <aws/sns/SNSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SNS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "DeleteTopic"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
43 
47  inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
48 
52  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
53 
57  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
58 
62  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
63 
67  inline DeleteTopicRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
68 
72  inline DeleteTopicRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
73 
77  inline DeleteTopicRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
78 
79  private:
80 
81  Aws::String m_topicArn;
82  bool m_topicArnHasBeenSet;
83  };
84 
85 } // namespace Model
86 } // namespace SNS
87 } // namespace Aws
Aws::SNS::Model::DeleteTopicRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SNS::Model::DeleteTopicRequest::DeleteTopicRequest
DeleteTopicRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::SNS::Model::DeleteTopicRequest::TopicArnHasBeenSet
bool TopicArnHasBeenSet() const
Definition: DeleteTopicRequest.h:47
Aws::SNS::Model::DeleteTopicRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SNS::Model::DeleteTopicRequest::SetTopicArn
void SetTopicArn(const Aws::String &value)
Definition: DeleteTopicRequest.h:52
Aws::SNS::Model::DeleteTopicRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteTopicRequest.h:30
Aws::SNS::Model::DeleteTopicRequest
Definition: DeleteTopicRequest.h:22
Aws::SNS::Model::DeleteTopicRequest::WithTopicArn
DeleteTopicRequest & WithTopicArn(const Aws::String &value)
Definition: DeleteTopicRequest.h:67
SNSRequest.h
Aws::SNS::SNSRequest
Definition: SNSRequest.h:17
Aws::SNS::Model::DeleteTopicRequest::WithTopicArn
DeleteTopicRequest & WithTopicArn(const char *value)
Definition: DeleteTopicRequest.h:77
Aws::SNS::Model::DeleteTopicRequest::SetTopicArn
void SetTopicArn(const char *value)
Definition: DeleteTopicRequest.h:62
AWSString.h
Aws::SNS::Model::DeleteTopicRequest::SetTopicArn
void SetTopicArn(Aws::String &&value)
Definition: DeleteTopicRequest.h:57
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::DeleteTopicRequest::GetTopicArn
const Aws::String & GetTopicArn() const
Definition: DeleteTopicRequest.h:42
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::DeleteTopicRequest::WithTopicArn
DeleteTopicRequest & WithTopicArn(Aws::String &&value)
Definition: DeleteTopicRequest.h:72