AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutAttributesRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace 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
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 = false;
156
157 Aws::Vector<Attribute> m_attributes;
158 bool m_attributesHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace ECS
163} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
const Aws::String & GetCluster() const
PutAttributesRequest & WithAttributes(const Aws::Vector< Attribute > &value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Attribute > & GetAttributes() const
PutAttributesRequest & WithCluster(const char *value)
void SetAttributes(const Aws::Vector< Attribute > &value)
PutAttributesRequest & AddAttributes(const Attribute &value)
void SetAttributes(Aws::Vector< Attribute > &&value)
PutAttributesRequest & WithAttributes(Aws::Vector< Attribute > &&value)
void SetCluster(const Aws::String &value)
PutAttributesRequest & WithCluster(Aws::String &&value)
PutAttributesRequest & WithCluster(const Aws::String &value)
AWS_ECS_API Aws::String SerializePayload() const override
PutAttributesRequest & AddAttributes(Attribute &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector