AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DeleteAttributesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/Attribute.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ECS {
25namespace Model {
32 public:
33 AWS_ECS_API DeleteAttributesResult() = default;
36
38
42 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
43 template <typename AttributesT = Aws::Vector<Attribute>>
44 void SetAttributes(AttributesT&& value) {
45 m_attributesHasBeenSet = true;
46 m_attributes = std::forward<AttributesT>(value);
47 }
48 template <typename AttributesT = Aws::Vector<Attribute>>
49 DeleteAttributesResult& WithAttributes(AttributesT&& value) {
50 SetAttributes(std::forward<AttributesT>(value));
51 return *this;
52 }
53 template <typename AttributesT = Attribute>
54 DeleteAttributesResult& AddAttributes(AttributesT&& value) {
55 m_attributesHasBeenSet = true;
56 m_attributes.emplace_back(std::forward<AttributesT>(value));
57 return *this;
58 }
60
62
63 inline const Aws::String& GetRequestId() const { return m_requestId; }
64 template <typename RequestIdT = Aws::String>
65 void SetRequestId(RequestIdT&& value) {
66 m_requestIdHasBeenSet = true;
67 m_requestId = std::forward<RequestIdT>(value);
68 }
69 template <typename RequestIdT = Aws::String>
71 SetRequestId(std::forward<RequestIdT>(value));
72 return *this;
73 }
75 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
76
77 private:
78 Aws::Vector<Attribute> m_attributes;
79
80 Aws::String m_requestId;
81 Aws::Http::HttpResponseCode m_HttpResponseCode;
82 bool m_attributesHasBeenSet = false;
83 bool m_requestIdHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace ECS
88} // namespace Aws
DeleteAttributesResult & WithAttributes(AttributesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_ECS_API DeleteAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ECS_API DeleteAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteAttributesResult & AddAttributes(AttributesT &&value)
const Aws::Vector< Attribute > & GetAttributes() const
DeleteAttributesResult & WithRequestId(RequestIdT &&value)
AWS_ECS_API DeleteAttributesResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue