AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
PutAttributesResult.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 PutAttributesResult() = default;
36
38
41 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
42 template <typename AttributesT = Aws::Vector<Attribute>>
43 void SetAttributes(AttributesT&& value) {
44 m_attributesHasBeenSet = true;
45 m_attributes = std::forward<AttributesT>(value);
46 }
47 template <typename AttributesT = Aws::Vector<Attribute>>
48 PutAttributesResult& WithAttributes(AttributesT&& value) {
49 SetAttributes(std::forward<AttributesT>(value));
50 return *this;
51 }
52 template <typename AttributesT = Attribute>
53 PutAttributesResult& AddAttributes(AttributesT&& value) {
54 m_attributesHasBeenSet = true;
55 m_attributes.emplace_back(std::forward<AttributesT>(value));
56 return *this;
57 }
59
61
62 inline const Aws::String& GetRequestId() const { return m_requestId; }
63 template <typename RequestIdT = Aws::String>
64 void SetRequestId(RequestIdT&& value) {
65 m_requestIdHasBeenSet = true;
66 m_requestId = std::forward<RequestIdT>(value);
67 }
68 template <typename RequestIdT = Aws::String>
69 PutAttributesResult& WithRequestId(RequestIdT&& value) {
70 SetRequestId(std::forward<RequestIdT>(value));
71 return *this;
72 }
74 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
75
76 private:
77 Aws::Vector<Attribute> m_attributes;
78
79 Aws::String m_requestId;
80 Aws::Http::HttpResponseCode m_HttpResponseCode;
81 bool m_attributesHasBeenSet = false;
82 bool m_requestIdHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace ECS
87} // namespace Aws
const Aws::String & GetRequestId() const
PutAttributesResult & AddAttributes(AttributesT &&value)
PutAttributesResult & WithAttributes(AttributesT &&value)
AWS_ECS_API PutAttributesResult()=default
AWS_ECS_API PutAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ECS_API PutAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Attribute > & GetAttributes() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
PutAttributesResult & WithRequestId(RequestIdT &&value)
void SetAttributes(AttributesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue