AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PutAttributesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/Attribute.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECS {
17namespace Model {
18
22 public:
23 AWS_ECS_API PutAttributesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutAttributes"; }
30
31 AWS_ECS_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetCluster() const { return m_cluster; }
42 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
43 template <typename ClusterT = Aws::String>
44 void SetCluster(ClusterT&& value) {
45 m_clusterHasBeenSet = true;
46 m_cluster = std::forward<ClusterT>(value);
47 }
48 template <typename ClusterT = Aws::String>
49 PutAttributesRequest& WithCluster(ClusterT&& value) {
50 SetCluster(std::forward<ClusterT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
62 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
63 template <typename AttributesT = Aws::Vector<Attribute>>
64 void SetAttributes(AttributesT&& value) {
65 m_attributesHasBeenSet = true;
66 m_attributes = std::forward<AttributesT>(value);
67 }
68 template <typename AttributesT = Aws::Vector<Attribute>>
69 PutAttributesRequest& WithAttributes(AttributesT&& value) {
70 SetAttributes(std::forward<AttributesT>(value));
71 return *this;
72 }
73 template <typename AttributesT = Attribute>
74 PutAttributesRequest& AddAttributes(AttributesT&& value) {
75 m_attributesHasBeenSet = true;
76 m_attributes.emplace_back(std::forward<AttributesT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_cluster;
82
83 Aws::Vector<Attribute> m_attributes;
84 bool m_clusterHasBeenSet = false;
85 bool m_attributesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace ECS
90} // namespace Aws
PutAttributesRequest & WithCluster(ClusterT &&value)
AWS_ECS_API PutAttributesRequest()=default
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Attribute > & GetAttributes() const
PutAttributesRequest & AddAttributes(AttributesT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
PutAttributesRequest & WithAttributes(AttributesT &&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