AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetFlagResult.h
1
6#pragma once
7#include <aws/appconfigcloudextension/AppConfigCloudExtension_EXPORTS.h>
8#include <aws/appconfigcloudextension/model/FlagAttributeValue.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.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 AppConfigCloudExtension {
25namespace Model {
32 public:
33 AWS_APPCONFIGCLOUDEXTENSION_API GetFlagResult() = default;
34 AWS_APPCONFIGCLOUDEXTENSION_API GetFlagResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
36
38
41 inline bool GetEnabled() const { return m_enabled; }
42 inline void SetEnabled(bool value) {
43 m_enabledHasBeenSet = true;
44 m_enabled = value;
45 }
46 inline GetFlagResult& WithEnabled(bool value) {
47 SetEnabled(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetVariant() const { return m_variant; }
58 template <typename VariantT = Aws::String>
59 void SetVariant(VariantT&& value) {
60 m_variantHasBeenSet = true;
61 m_variant = std::forward<VariantT>(value);
62 }
63 template <typename VariantT = Aws::String>
64 GetFlagResult& WithVariant(VariantT&& value) {
65 SetVariant(std::forward<VariantT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::Map<Aws::String, FlagAttributeValue>& GetAttributes() const { return m_attributes; }
76 template <typename AttributesT = Aws::Map<Aws::String, FlagAttributeValue>>
77 void SetAttributes(AttributesT&& value) {
78 m_attributesHasBeenSet = true;
79 m_attributes = std::forward<AttributesT>(value);
80 }
81 template <typename AttributesT = Aws::Map<Aws::String, FlagAttributeValue>>
82 GetFlagResult& WithAttributes(AttributesT&& value) {
83 SetAttributes(std::forward<AttributesT>(value));
84 return *this;
85 }
86 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = FlagAttributeValue>
87 GetFlagResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
88 m_attributesHasBeenSet = true;
89 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
90 return *this;
91 }
93
95
96 inline const Aws::String& GetRequestId() const { return m_requestId; }
97 template <typename RequestIdT = Aws::String>
98 void SetRequestId(RequestIdT&& value) {
99 m_requestIdHasBeenSet = true;
100 m_requestId = std::forward<RequestIdT>(value);
101 }
102 template <typename RequestIdT = Aws::String>
103 GetFlagResult& WithRequestId(RequestIdT&& value) {
104 SetRequestId(std::forward<RequestIdT>(value));
105 return *this;
106 }
108 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
109
110 private:
111 bool m_enabled{false};
112
113 Aws::String m_variant;
114
116
117 Aws::String m_requestId;
118 Aws::Http::HttpResponseCode m_HttpResponseCode;
119 bool m_enabledHasBeenSet = false;
120 bool m_variantHasBeenSet = false;
121 bool m_attributesHasBeenSet = false;
122 bool m_requestIdHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace AppConfigCloudExtension
127} // namespace Aws
AWS_APPCONFIGCLOUDEXTENSION_API GetFlagResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_APPCONFIGCLOUDEXTENSION_API GetFlagResult()=default
const Aws::Map< Aws::String, FlagAttributeValue > & GetAttributes() const
GetFlagResult & WithVariant(VariantT &&value)
GetFlagResult & WithAttributes(AttributesT &&value)
GetFlagResult & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
GetFlagResult & WithRequestId(RequestIdT &&value)
AWS_APPCONFIGCLOUDEXTENSION_API GetFlagResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue