AWS SDK for C++  0.14.3
AWS SDK for C++
GetSMSAttributesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sns/SNS_EXPORTS.h>
17 #include <aws/sns/SNSRequest.h>
20 
21 namespace Aws
22 {
23 namespace SNS
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
44  inline const Aws::Vector<Aws::String>& GetAttributes() const{ return m_attributes; }
45 
53  inline void SetAttributes(const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
54 
62  inline void SetAttributes(Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
63 
71  inline GetSMSAttributesRequest& WithAttributes(const Aws::Vector<Aws::String>& value) { SetAttributes(value); return *this;}
72 
80  inline GetSMSAttributesRequest& WithAttributes(Aws::Vector<Aws::String>&& value) { SetAttributes(value); return *this;}
81 
89  inline GetSMSAttributesRequest& AddAttributes(const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
90 
98  inline GetSMSAttributesRequest& AddAttributes(Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
99 
107  inline GetSMSAttributesRequest& AddAttributes(const char* value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
108 
109  private:
110  Aws::Vector<Aws::String> m_attributes;
111  bool m_attributesHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace SNS
116 } // namespace Aws
GetSMSAttributesRequest & WithAttributes(Aws::Vector< Aws::String > &&value)
GetSMSAttributesRequest & WithAttributes(const Aws::Vector< Aws::String > &value)
GetSMSAttributesRequest & AddAttributes(const char *value)
void SetAttributes(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetSMSAttributesRequest & AddAttributes(Aws::String &&value)
void SetAttributes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAttributes() const
GetSMSAttributesRequest & AddAttributes(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:37
JSON (JavaScript Object Notation).