AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
DeleteAttributesRequest.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
25 public:
26 AWS_ECS_API DeleteAttributesRequest() = default;
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_ECS_API Aws::String SerializePayload() const override;
35
37
39
44 inline const Aws::String& GetCluster() const { return m_cluster; }
45 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
46 template <typename ClusterT = Aws::String>
47 void SetCluster(ClusterT&& value) {
48 m_clusterHasBeenSet = true;
49 m_cluster = std::forward<ClusterT>(value);
50 }
51 template <typename ClusterT = Aws::String>
53 SetCluster(std::forward<ClusterT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
66 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
67 template <typename AttributesT = Aws::Vector<Attribute>>
68 void SetAttributes(AttributesT&& value) {
69 m_attributesHasBeenSet = true;
70 m_attributes = std::forward<AttributesT>(value);
71 }
72 template <typename AttributesT = Aws::Vector<Attribute>>
74 SetAttributes(std::forward<AttributesT>(value));
75 return *this;
76 }
77 template <typename AttributesT = Attribute>
78 DeleteAttributesRequest& AddAttributes(AttributesT&& value) {
79 m_attributesHasBeenSet = true;
80 m_attributes.emplace_back(std::forward<AttributesT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_cluster;
86
87 Aws::Vector<Attribute> m_attributes;
88 bool m_clusterHasBeenSet = false;
89 bool m_attributesHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace ECS
94} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Attribute > & GetAttributes() const
DeleteAttributesRequest & WithCluster(ClusterT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECS_API Aws::String SerializePayload() const override
AWS_ECS_API DeleteAttributesRequest()=default
DeleteAttributesRequest & WithAttributes(AttributesT &&value)
DeleteAttributesRequest & AddAttributes(AttributesT &&value)
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