AWS SDK for C++  1.9.71
AWS SDK for C++
DeleteAttributesRequest.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 "DeleteAttributes"; }
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 DeleteAttributesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
80 
86  inline DeleteAttributesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
87 
93  inline DeleteAttributesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
94 
95 
102  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
103 
110  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
111 
118  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
119 
126  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
127 
134  inline DeleteAttributesRequest& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
135 
142  inline DeleteAttributesRequest& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
143 
150  inline DeleteAttributesRequest& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
151 
158  inline DeleteAttributesRequest& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
159 
160  private:
161 
162  Aws::String m_cluster;
163  bool m_clusterHasBeenSet;
164 
165  Aws::Vector<Attribute> m_attributes;
166  bool m_attributesHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace ECS
171 } // namespace Aws
Aws::ECS::Model::DeleteAttributesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::DeleteAttributesRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: DeleteAttributesRequest.h:110
Aws::ECS::Model::DeleteAttributesRequest::SetCluster
void SetCluster(const char *value)
Definition: DeleteAttributesRequest.h:72
Aws::ECS::Model::DeleteAttributesRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: DeleteAttributesRequest.h:58
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::DeleteAttributesRequest
Definition: DeleteAttributesRequest.h:24
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::DeleteAttributesRequest::WithCluster
DeleteAttributesRequest & WithCluster(const char *value)
Definition: DeleteAttributesRequest.h:93
Aws::ECS::Model::DeleteAttributesRequest::WithCluster
DeleteAttributesRequest & WithCluster(const Aws::String &value)
Definition: DeleteAttributesRequest.h:79
Aws::ECS::Model::DeleteAttributesRequest::AddAttributes
DeleteAttributesRequest & AddAttributes(const Attribute &value)
Definition: DeleteAttributesRequest.h:150
Aws::ECS::Model::DeleteAttributesRequest::GetAttributes
const Aws::Vector< Attribute > & GetAttributes() const
Definition: DeleteAttributesRequest.h:102
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ECS::Model::DeleteAttributesRequest::WithAttributes
DeleteAttributesRequest & WithAttributes(Aws::Vector< Attribute > &&value)
Definition: DeleteAttributesRequest.h:142
Aws::ECS::Model::DeleteAttributesRequest::SetAttributes
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition: DeleteAttributesRequest.h:118
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Attribute.h
Aws::ECS::Model::DeleteAttributesRequest::AddAttributes
DeleteAttributesRequest & AddAttributes(Attribute &&value)
Definition: DeleteAttributesRequest.h:158
Aws::ECS::Model::DeleteAttributesRequest::WithCluster
DeleteAttributesRequest & WithCluster(Aws::String &&value)
Definition: DeleteAttributesRequest.h:86
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
AWSString.h
Aws::ECS::Model::DeleteAttributesRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: DeleteAttributesRequest.h:51
Aws::ECS::Model::DeleteAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteAttributesRequest.h:32
Aws::ECS::Model::DeleteAttributesRequest::GetCluster
const Aws::String & GetCluster() const
Definition: DeleteAttributesRequest.h:44
Aws::ECS::Model::DeleteAttributesRequest::DeleteAttributesRequest
DeleteAttributesRequest()
Aws::ECS::Model::DeleteAttributesRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: DeleteAttributesRequest.h:65
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::DeleteAttributesRequest::SetAttributes
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition: DeleteAttributesRequest.h:126
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::DeleteAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::DeleteAttributesRequest::WithAttributes
DeleteAttributesRequest & WithAttributes(const Aws::Vector< Attribute > &value)
Definition: DeleteAttributesRequest.h:134