AWS SDK for C++  1.9.159
AWS SDK for C++
PutAttributesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "PutAttributes"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetCluster() const{ return m_cluster; }
45 
51  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
52 
58  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
59 
65  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
66 
72  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
73 
79  inline PutAttributesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
80 
86  inline PutAttributesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
87 
93  inline PutAttributesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
94 
95 
101  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
102 
108  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
109 
115  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
116 
122  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
123 
129  inline PutAttributesRequest& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
130 
136  inline PutAttributesRequest& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
137 
143  inline PutAttributesRequest& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
144 
150  inline PutAttributesRequest& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
151 
152  private:
153 
154  Aws::String m_cluster;
155  bool m_clusterHasBeenSet;
156 
157  Aws::Vector<Attribute> m_attributes;
158  bool m_attributesHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace ECS
163 } // namespace Aws
Aws::ECS::Model::PutAttributesRequest::WithCluster
PutAttributesRequest & WithCluster(const char *value)
Definition: PutAttributesRequest.h:93
Aws::ECS::Model::PutAttributesRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: PutAttributesRequest.h:51
Aws::ECS::Model::PutAttributesRequest::AddAttributes
PutAttributesRequest & AddAttributes(Attribute &&value)
Definition: PutAttributesRequest.h:150
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::PutAttributesRequest::WithCluster
PutAttributesRequest & WithCluster(Aws::String &&value)
Definition: PutAttributesRequest.h:86
Aws::ECS::Model::PutAttributesRequest::SetAttributes
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition: PutAttributesRequest.h:115
Aws::ECS::Model::PutAttributesRequest::SetAttributes
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition: PutAttributesRequest.h:122
Aws::ECS::Model::PutAttributesRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: PutAttributesRequest.h:58
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::PutAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Attribute.h
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::PutAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutAttributesRequest.h:32
Aws::ECS::Model::PutAttributesRequest::PutAttributesRequest
PutAttributesRequest()
Aws::ECS::Model::PutAttributesRequest::GetAttributes
const Aws::Vector< Attribute > & GetAttributes() const
Definition: PutAttributesRequest.h:101
AWSString.h
Aws::ECS::Model::PutAttributesRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: PutAttributesRequest.h:108
Aws::ECS::Model::PutAttributesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::PutAttributesRequest
Definition: PutAttributesRequest.h:24
Aws::ECS::Model::PutAttributesRequest::SetCluster
void SetCluster(const char *value)
Definition: PutAttributesRequest.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::PutAttributesRequest::GetCluster
const Aws::String & GetCluster() const
Definition: PutAttributesRequest.h:44
Aws::ECS::Model::PutAttributesRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: PutAttributesRequest.h:65
Aws::ECS::Model::PutAttributesRequest::WithCluster
PutAttributesRequest & WithCluster(const Aws::String &value)
Definition: PutAttributesRequest.h:79
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::PutAttributesRequest::AddAttributes
PutAttributesRequest & AddAttributes(const Attribute &value)
Definition: PutAttributesRequest.h:143
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::PutAttributesRequest::WithAttributes
PutAttributesRequest & WithAttributes(Aws::Vector< Attribute > &&value)
Definition: PutAttributesRequest.h:136
Aws::ECS::Model::PutAttributesRequest::WithAttributes
PutAttributesRequest & WithAttributes(const Aws::Vector< Attribute > &value)
Definition: PutAttributesRequest.h:129