AWS SDK for C++  1.9.104
AWS SDK for C++
SetEndpointAttributesRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "SetEndpointAttributes"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
47 
51  inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
52 
56  inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
57 
61  inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
62 
66  inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
67 
71  inline SetEndpointAttributesRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
72 
76  inline SetEndpointAttributesRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
77 
81  inline SetEndpointAttributesRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
82 
83 
97  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
98 
112  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
113 
127  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
128 
142  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
143 
157  inline SetEndpointAttributesRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
158 
172  inline SetEndpointAttributesRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
173 
187  inline SetEndpointAttributesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
188 
202  inline SetEndpointAttributesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
203 
217  inline SetEndpointAttributesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
218 
232  inline SetEndpointAttributesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
233 
247  inline SetEndpointAttributesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
248 
262  inline SetEndpointAttributesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
263 
277  inline SetEndpointAttributesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
278 
279  private:
280 
281  Aws::String m_endpointArn;
282  bool m_endpointArnHasBeenSet;
283 
285  bool m_attributesHasBeenSet;
286  };
287 
288 } // namespace Model
289 } // namespace SNS
290 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SNS::Model::SetEndpointAttributesRequest::WithEndpointArn
SetEndpointAttributesRequest & WithEndpointArn(Aws::String &&value)
Definition: SetEndpointAttributesRequest.h:76
Aws::SNS::Model::SetEndpointAttributesRequest::WithEndpointArn
SetEndpointAttributesRequest & WithEndpointArn(const Aws::String &value)
Definition: SetEndpointAttributesRequest.h:71
Aws::SNS::Model::SetEndpointAttributesRequest::AddAttributes
SetEndpointAttributesRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: SetEndpointAttributesRequest.h:232
Aws::SNS::Model::SetEndpointAttributesRequest
Definition: SetEndpointAttributesRequest.h:26
Aws::SNS::Model::SetEndpointAttributesRequest::AddAttributes
SetEndpointAttributesRequest & AddAttributes(const char *key, Aws::String &&value)
Definition: SetEndpointAttributesRequest.h:247
Aws::SNS::Model::SetEndpointAttributesRequest::GetEndpointArn
const Aws::String & GetEndpointArn() const
Definition: SetEndpointAttributesRequest.h:46
Aws::SNS::Model::SetEndpointAttributesRequest::AddAttributes
SetEndpointAttributesRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: SetEndpointAttributesRequest.h:202
Aws::SNS::Model::SetEndpointAttributesRequest::EndpointArnHasBeenSet
bool EndpointArnHasBeenSet() const
Definition: SetEndpointAttributesRequest.h:51
Aws::SNS::Model::SetEndpointAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetEndpointAttributesRequest.h:34
Aws::SNS::Model::SetEndpointAttributesRequest::AddAttributes
SetEndpointAttributesRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: SetEndpointAttributesRequest.h:217
Aws::SNS::Model::SetEndpointAttributesRequest::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: SetEndpointAttributesRequest.h:97
Aws::SNS::Model::SetEndpointAttributesRequest::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: SetEndpointAttributesRequest.h:127
Aws::SNS::Model::SetEndpointAttributesRequest::AddAttributes
SetEndpointAttributesRequest & AddAttributes(const char *key, const char *value)
Definition: SetEndpointAttributesRequest.h:277
SNSRequest.h
Aws::SNS::SNSRequest
Definition: SNSRequest.h:17
Aws::SNS::Model::SetEndpointAttributesRequest::AddAttributes
SetEndpointAttributesRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: SetEndpointAttributesRequest.h:187
Aws::SNS::Model::SetEndpointAttributesRequest::AddAttributes
SetEndpointAttributesRequest & AddAttributes(Aws::String &&key, const char *value)
Definition: SetEndpointAttributesRequest.h:262
AWSString.h
Aws::SNS::Model::SetEndpointAttributesRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: SetEndpointAttributesRequest.h:112
Aws::SNS::Model::SetEndpointAttributesRequest::SetEndpointAttributesRequest
SetEndpointAttributesRequest()
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::SetEndpointAttributesRequest::WithAttributes
SetEndpointAttributesRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: SetEndpointAttributesRequest.h:172
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::SetEndpointAttributesRequest::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: SetEndpointAttributesRequest.h:142
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::SetEndpointAttributesRequest::WithAttributes
SetEndpointAttributesRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: SetEndpointAttributesRequest.h:157
Aws::SNS::Model::SetEndpointAttributesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SNS::Model::SetEndpointAttributesRequest::SetEndpointArn
void SetEndpointArn(const Aws::String &value)
Definition: SetEndpointAttributesRequest.h:56
AWSMap.h
Aws::SNS::Model::SetEndpointAttributesRequest::SetEndpointArn
void SetEndpointArn(const char *value)
Definition: SetEndpointAttributesRequest.h:66
Aws::SNS::Model::SetEndpointAttributesRequest::SetEndpointArn
void SetEndpointArn(Aws::String &&value)
Definition: SetEndpointAttributesRequest.h:61
Aws::SNS::Model::SetEndpointAttributesRequest::WithEndpointArn
SetEndpointAttributesRequest & WithEndpointArn(const char *value)
Definition: SetEndpointAttributesRequest.h:81
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::SNS::Model::SetEndpointAttributesRequest::SerializePayload
Aws::String SerializePayload() const override