AWS SDK for C++  1.9.153
AWS SDK for C++
PutAttributesResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace ECS
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
40 
44  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributes = value; }
45 
49  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributes = std::move(value); }
50 
54  inline PutAttributesResult& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
55 
59  inline PutAttributesResult& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
60 
64  inline PutAttributesResult& AddAttributes(const Attribute& value) { m_attributes.push_back(value); return *this; }
65 
69  inline PutAttributesResult& AddAttributes(Attribute&& value) { m_attributes.push_back(std::move(value)); return *this; }
70 
71  private:
72 
73  Aws::Vector<Attribute> m_attributes;
74  };
75 
76 } // namespace Model
77 } // namespace ECS
78 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::PutAttributesResult::WithAttributes
PutAttributesResult & WithAttributes(Aws::Vector< Attribute > &&value)
Definition: PutAttributesResult.h:59
Aws::ECS::Model::PutAttributesResult::AddAttributes
PutAttributesResult & AddAttributes(Attribute &&value)
Definition: PutAttributesResult.h:69
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::PutAttributesResult::PutAttributesResult
PutAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::PutAttributesResult
Definition: PutAttributesResult.h:29
AWSVector.h
Aws::ECS::Model::PutAttributesResult::AddAttributes
PutAttributesResult & AddAttributes(const Attribute &value)
Definition: PutAttributesResult.h:64
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Attribute.h
Aws::ECS::Model::PutAttributesResult::WithAttributes
PutAttributesResult & WithAttributes(const Aws::Vector< Attribute > &value)
Definition: PutAttributesResult.h:54
Aws::ECS::Model::PutAttributesResult::GetAttributes
const Aws::Vector< Attribute > & GetAttributes() const
Definition: PutAttributesResult.h:39
Aws::ECS::Model::PutAttributesResult::SetAttributes
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition: PutAttributesResult.h:49
Aws::ECS::Model::PutAttributesResult::SetAttributes
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition: PutAttributesResult.h:44
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::PutAttributesResult::PutAttributesResult
PutAttributesResult()
Aws::ECS::Model::PutAttributesResult::operator=
PutAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::Attribute
Definition: Attribute.h:38
ECS_EXPORTS.h