AWS SDK for C++  1.9.104
AWS SDK for C++
GetSMSAttributesRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SNS
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "GetSMSAttributes"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
51  inline const Aws::Vector<Aws::String>& GetAttributes() const{ return m_attributes; }
52 
60  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
61 
69  inline void SetAttributes(const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
70 
78  inline void SetAttributes(Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
79 
87  inline GetSMSAttributesRequest& WithAttributes(const Aws::Vector<Aws::String>& value) { SetAttributes(value); return *this;}
88 
96  inline GetSMSAttributesRequest& WithAttributes(Aws::Vector<Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
97 
105  inline GetSMSAttributesRequest& AddAttributes(const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
106 
114  inline GetSMSAttributesRequest& AddAttributes(Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
115 
123  inline GetSMSAttributesRequest& AddAttributes(const char* value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
124 
125  private:
126 
127  Aws::Vector<Aws::String> m_attributes;
128  bool m_attributesHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace SNS
133 } // namespace Aws
Aws::SNS::Model::GetSMSAttributesRequest::WithAttributes
GetSMSAttributesRequest & WithAttributes(const Aws::Vector< Aws::String > &value)
Definition: GetSMSAttributesRequest.h:87
Aws::Http::URI
Definition: URI.h:32
Aws::SNS::Model::GetSMSAttributesRequest::GetAttributes
const Aws::Vector< Aws::String > & GetAttributes() const
Definition: GetSMSAttributesRequest.h:51
Aws::SNS::Model::GetSMSAttributesRequest::WithAttributes
GetSMSAttributesRequest & WithAttributes(Aws::Vector< Aws::String > &&value)
Definition: GetSMSAttributesRequest.h:96
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SNS::Model::GetSMSAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSMSAttributesRequest.h:35
Aws::SNS::Model::GetSMSAttributesRequest::AddAttributes
GetSMSAttributesRequest & AddAttributes(const char *value)
Definition: GetSMSAttributesRequest.h:123
Aws::SNS::Model::GetSMSAttributesRequest::AddAttributes
GetSMSAttributesRequest & AddAttributes(const Aws::String &value)
Definition: GetSMSAttributesRequest.h:105
AWSVector.h
Aws::SNS::Model::GetSMSAttributesRequest::SetAttributes
void SetAttributes(Aws::Vector< Aws::String > &&value)
Definition: GetSMSAttributesRequest.h:78
Aws::SNS::Model::GetSMSAttributesRequest
Definition: GetSMSAttributesRequest.h:27
Aws::SNS::Model::GetSMSAttributesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SNS::Model::GetSMSAttributesRequest::AddAttributes
GetSMSAttributesRequest & AddAttributes(Aws::String &&value)
Definition: GetSMSAttributesRequest.h:114
SNSRequest.h
Aws::SNS::SNSRequest
Definition: SNSRequest.h:17
Aws::SNS::Model::GetSMSAttributesRequest::GetSMSAttributesRequest
GetSMSAttributesRequest()
AWSString.h
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws::SNS::Model::GetSMSAttributesRequest::SetAttributes
void SetAttributes(const Aws::Vector< Aws::String > &value)
Definition: GetSMSAttributesRequest.h:69
Aws::SNS::Model::GetSMSAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
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::GetSMSAttributesRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: GetSMSAttributesRequest.h:60