AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddPermissionRequest.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/sns/SNSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SNS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SNS_API AddPermissionRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AddPermission"; }
32
33 AWS_SNS_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
45 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
46 inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
47 inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
48 inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
49 inline AddPermissionRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
50 inline AddPermissionRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
51 inline AddPermissionRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
53
55
58 inline const Aws::String& GetLabel() const{ return m_label; }
59 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
60 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
61 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
62 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
63 inline AddPermissionRequest& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
64 inline AddPermissionRequest& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
65 inline AddPermissionRequest& WithLabel(const char* value) { SetLabel(value); return *this;}
67
69
74 inline const Aws::Vector<Aws::String>& GetAWSAccountId() const{ return m_aWSAccountId; }
75 inline bool AWSAccountIdHasBeenSet() const { return m_aWSAccountIdHasBeenSet; }
76 inline void SetAWSAccountId(const Aws::Vector<Aws::String>& value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId = value; }
77 inline void SetAWSAccountId(Aws::Vector<Aws::String>&& value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId = std::move(value); }
79 inline AddPermissionRequest& WithAWSAccountId(Aws::Vector<Aws::String>&& value) { SetAWSAccountId(std::move(value)); return *this;}
80 inline AddPermissionRequest& AddAWSAccountId(const Aws::String& value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId.push_back(value); return *this; }
81 inline AddPermissionRequest& AddAWSAccountId(Aws::String&& value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId.push_back(std::move(value)); return *this; }
82 inline AddPermissionRequest& AddAWSAccountId(const char* value) { m_aWSAccountIdHasBeenSet = true; m_aWSAccountId.push_back(value); return *this; }
84
86
90 inline const Aws::Vector<Aws::String>& GetActionName() const{ return m_actionName; }
91 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
92 inline void SetActionName(const Aws::Vector<Aws::String>& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
93 inline void SetActionName(Aws::Vector<Aws::String>&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
94 inline AddPermissionRequest& WithActionName(const Aws::Vector<Aws::String>& value) { SetActionName(value); return *this;}
95 inline AddPermissionRequest& WithActionName(Aws::Vector<Aws::String>&& value) { SetActionName(std::move(value)); return *this;}
96 inline AddPermissionRequest& AddActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName.push_back(value); return *this; }
97 inline AddPermissionRequest& AddActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName.push_back(std::move(value)); return *this; }
98 inline AddPermissionRequest& AddActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.push_back(value); return *this; }
100 private:
101
102 Aws::String m_topicArn;
103 bool m_topicArnHasBeenSet = false;
104
105 Aws::String m_label;
106 bool m_labelHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_aWSAccountId;
109 bool m_aWSAccountIdHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_actionName;
112 bool m_actionNameHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace SNS
117} // namespace Aws
AddPermissionRequest & AddActionName(const char *value)
const Aws::String & GetTopicArn() const
AddPermissionRequest & WithActionName(Aws::Vector< Aws::String > &&value)
AWS_SNS_API Aws::String SerializePayload() const override
AddPermissionRequest & AddAWSAccountId(Aws::String &&value)
AddPermissionRequest & WithLabel(const Aws::String &value)
AddPermissionRequest & WithLabel(Aws::String &&value)
void SetLabel(const Aws::String &value)
void SetAWSAccountId(const Aws::Vector< Aws::String > &value)
AddPermissionRequest & WithTopicArn(Aws::String &&value)
AddPermissionRequest & AddActionName(Aws::String &&value)
AddPermissionRequest & AddAWSAccountId(const char *value)
const Aws::Vector< Aws::String > & GetActionName() const
AddPermissionRequest & WithLabel(const char *value)
AddPermissionRequest & WithAWSAccountId(const Aws::Vector< Aws::String > &value)
AddPermissionRequest & WithTopicArn(const char *value)
AddPermissionRequest & WithAWSAccountId(Aws::Vector< Aws::String > &&value)
void SetTopicArn(const Aws::String &value)
void SetActionName(Aws::Vector< Aws::String > &&value)
void SetAWSAccountId(Aws::Vector< Aws::String > &&value)
AddPermissionRequest & AddAWSAccountId(const Aws::String &value)
AddPermissionRequest & AddActionName(const Aws::String &value)
AddPermissionRequest & WithActionName(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAWSAccountId() const
void SetActionName(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AddPermissionRequest & WithTopicArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector