AWS SDK for C++  1.9.153
AWS SDK for C++
ListAttributesResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ECS
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
41 
45  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributes = value; }
46 
50  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributes = std::move(value); }
51 
55  inline ListAttributesResult& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
56 
60  inline ListAttributesResult& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
61 
65  inline ListAttributesResult& AddAttributes(const Attribute& value) { m_attributes.push_back(value); return *this; }
66 
70  inline ListAttributesResult& AddAttributes(Attribute&& value) { m_attributes.push_back(std::move(value)); return *this; }
71 
72 
80  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
81 
89  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
90 
98  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
99 
107  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
108 
116  inline ListAttributesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 
125  inline ListAttributesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
126 
134  inline ListAttributesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<Attribute> m_attributes;
139 
140  Aws::String m_nextToken;
141  };
142 
143 } // namespace Model
144 } // namespace ECS
145 } // namespace Aws
Aws::ECS::Model::ListAttributesResult
Definition: ListAttributesResult.h:30
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::ListAttributesResult::GetAttributes
const Aws::Vector< Attribute > & GetAttributes() const
Definition: ListAttributesResult.h:40
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ListAttributesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAttributesResult.h:80
Aws::ECS::Model::ListAttributesResult::WithNextToken
ListAttributesResult & WithNextToken(const Aws::String &value)
Definition: ListAttributesResult.h:116
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::ListAttributesResult::WithNextToken
ListAttributesResult & WithNextToken(const char *value)
Definition: ListAttributesResult.h:134
Aws::ECS::Model::ListAttributesResult::AddAttributes
ListAttributesResult & AddAttributes(const Attribute &value)
Definition: ListAttributesResult.h:65
Aws::ECS::Model::ListAttributesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAttributesResult.h:98
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Attribute.h
Aws::ECS::Model::ListAttributesResult::SetAttributes
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition: ListAttributesResult.h:45
Aws::ECS::Model::ListAttributesResult::ListAttributesResult
ListAttributesResult()
Aws::ECS::Model::ListAttributesResult::SetAttributes
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition: ListAttributesResult.h:50
AWSString.h
Aws::ECS::Model::ListAttributesResult::WithNextToken
ListAttributesResult & WithNextToken(Aws::String &&value)
Definition: ListAttributesResult.h:125
Aws::ECS::Model::ListAttributesResult::ListAttributesResult
ListAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::ListAttributesResult::AddAttributes
ListAttributesResult & AddAttributes(Attribute &&value)
Definition: ListAttributesResult.h:70
Aws::ECS::Model::ListAttributesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListAttributesResult.h:107
Aws::ECS::Model::ListAttributesResult::WithAttributes
ListAttributesResult & WithAttributes(Aws::Vector< Attribute > &&value)
Definition: ListAttributesResult.h:60
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::Attribute
Definition: Attribute.h:38
Aws::ECS::Model::ListAttributesResult::operator=
ListAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::ListAttributesResult::WithAttributes
ListAttributesResult & WithAttributes(const Aws::Vector< Attribute > &value)
Definition: ListAttributesResult.h:55
Aws::ECS::Model::ListAttributesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAttributesResult.h:89
ECS_EXPORTS.h