AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateKeyRegistrationResult.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/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/FailedKeyRegistrationEntry.h>
12#include <aws/quicksight/model/SuccessfulKeyRegistrationEntry.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace QuickSight {
26namespace Model {
28 public:
29 AWS_QUICKSIGHT_API UpdateKeyRegistrationResult() = default;
32
34
37 inline const Aws::Vector<FailedKeyRegistrationEntry>& GetFailedKeyRegistration() const { return m_failedKeyRegistration; }
38 template <typename FailedKeyRegistrationT = Aws::Vector<FailedKeyRegistrationEntry>>
39 void SetFailedKeyRegistration(FailedKeyRegistrationT&& value) {
40 m_failedKeyRegistrationHasBeenSet = true;
41 m_failedKeyRegistration = std::forward<FailedKeyRegistrationT>(value);
42 }
43 template <typename FailedKeyRegistrationT = Aws::Vector<FailedKeyRegistrationEntry>>
44 UpdateKeyRegistrationResult& WithFailedKeyRegistration(FailedKeyRegistrationT&& value) {
45 SetFailedKeyRegistration(std::forward<FailedKeyRegistrationT>(value));
46 return *this;
47 }
48 template <typename FailedKeyRegistrationT = FailedKeyRegistrationEntry>
49 UpdateKeyRegistrationResult& AddFailedKeyRegistration(FailedKeyRegistrationT&& value) {
50 m_failedKeyRegistrationHasBeenSet = true;
51 m_failedKeyRegistration.emplace_back(std::forward<FailedKeyRegistrationT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<SuccessfulKeyRegistrationEntry>& GetSuccessfulKeyRegistration() const { return m_successfulKeyRegistration; }
62 template <typename SuccessfulKeyRegistrationT = Aws::Vector<SuccessfulKeyRegistrationEntry>>
63 void SetSuccessfulKeyRegistration(SuccessfulKeyRegistrationT&& value) {
64 m_successfulKeyRegistrationHasBeenSet = true;
65 m_successfulKeyRegistration = std::forward<SuccessfulKeyRegistrationT>(value);
66 }
67 template <typename SuccessfulKeyRegistrationT = Aws::Vector<SuccessfulKeyRegistrationEntry>>
68 UpdateKeyRegistrationResult& WithSuccessfulKeyRegistration(SuccessfulKeyRegistrationT&& value) {
69 SetSuccessfulKeyRegistration(std::forward<SuccessfulKeyRegistrationT>(value));
70 return *this;
71 }
72 template <typename SuccessfulKeyRegistrationT = SuccessfulKeyRegistrationEntry>
73 UpdateKeyRegistrationResult& AddSuccessfulKeyRegistration(SuccessfulKeyRegistrationT&& value) {
74 m_successfulKeyRegistrationHasBeenSet = true;
75 m_successfulKeyRegistration.emplace_back(std::forward<SuccessfulKeyRegistrationT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Aws::Vector<FailedKeyRegistrationEntry> m_failedKeyRegistration;
98
99 Aws::Vector<SuccessfulKeyRegistrationEntry> m_successfulKeyRegistration;
100
101 Aws::String m_requestId;
102 Aws::Http::HttpResponseCode m_HttpResponseCode;
103 bool m_failedKeyRegistrationHasBeenSet = false;
104 bool m_successfulKeyRegistrationHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace QuickSight
110} // namespace Aws
void SetSuccessfulKeyRegistration(SuccessfulKeyRegistrationT &&value)
AWS_QUICKSIGHT_API UpdateKeyRegistrationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateKeyRegistrationResult & WithRequestId(RequestIdT &&value)
AWS_QUICKSIGHT_API UpdateKeyRegistrationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateKeyRegistrationResult & AddSuccessfulKeyRegistration(SuccessfulKeyRegistrationT &&value)
const Aws::Vector< FailedKeyRegistrationEntry > & GetFailedKeyRegistration() const
UpdateKeyRegistrationResult & AddFailedKeyRegistration(FailedKeyRegistrationT &&value)
UpdateKeyRegistrationResult & WithSuccessfulKeyRegistration(SuccessfulKeyRegistrationT &&value)
AWS_QUICKSIGHT_API UpdateKeyRegistrationResult()=default
const Aws::Vector< SuccessfulKeyRegistrationEntry > & GetSuccessfulKeyRegistration() const
UpdateKeyRegistrationResult & WithFailedKeyRegistration(FailedKeyRegistrationT &&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