AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PutAttributesResult.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/ECS_EXPORTS.h>
10#include <aws/ecs/model/Attribute.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace ECS {
24namespace Model {
26 public:
27 AWS_ECS_API PutAttributesResult() = default;
30
32
35 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
36 template <typename AttributesT = Aws::Vector<Attribute>>
37 void SetAttributes(AttributesT&& value) {
38 m_attributesHasBeenSet = true;
39 m_attributes = std::forward<AttributesT>(value);
40 }
41 template <typename AttributesT = Aws::Vector<Attribute>>
42 PutAttributesResult& WithAttributes(AttributesT&& value) {
43 SetAttributes(std::forward<AttributesT>(value));
44 return *this;
45 }
46 template <typename AttributesT = Attribute>
47 PutAttributesResult& AddAttributes(AttributesT&& value) {
48 m_attributesHasBeenSet = true;
49 m_attributes.emplace_back(std::forward<AttributesT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetRequestId() const { return m_requestId; }
57 template <typename RequestIdT = Aws::String>
58 void SetRequestId(RequestIdT&& value) {
59 m_requestIdHasBeenSet = true;
60 m_requestId = std::forward<RequestIdT>(value);
61 }
62 template <typename RequestIdT = Aws::String>
63 PutAttributesResult& WithRequestId(RequestIdT&& value) {
64 SetRequestId(std::forward<RequestIdT>(value));
65 return *this;
66 }
68 private:
69 Aws::Vector<Attribute> m_attributes;
70
71 Aws::String m_requestId;
72 bool m_attributesHasBeenSet = false;
73 bool m_requestIdHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace ECS
78} // 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
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