AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
UpdateUserResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/User.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 QuickSight {
24namespace Model {
26 public:
27 AWS_QUICKSIGHT_API UpdateUserResult() = default;
30
32
35 inline const User& GetUser() const { return m_user; }
36 template <typename UserT = User>
37 void SetUser(UserT&& value) {
38 m_userHasBeenSet = true;
39 m_user = std::forward<UserT>(value);
40 }
41 template <typename UserT = User>
42 UpdateUserResult& WithUser(UserT&& value) {
43 SetUser(std::forward<UserT>(value));
44 return *this;
45 }
47
49
50 inline const Aws::String& GetRequestId() const { return m_requestId; }
51 template <typename RequestIdT = Aws::String>
52 void SetRequestId(RequestIdT&& value) {
53 m_requestIdHasBeenSet = true;
54 m_requestId = std::forward<RequestIdT>(value);
55 }
56 template <typename RequestIdT = Aws::String>
57 UpdateUserResult& WithRequestId(RequestIdT&& value) {
58 SetRequestId(std::forward<RequestIdT>(value));
59 return *this;
60 }
62
64
67 inline int GetStatus() const { return m_status; }
68 inline void SetStatus(int value) {
69 m_statusHasBeenSet = true;
70 m_status = value;
71 }
72 inline UpdateUserResult& WithStatus(int value) {
73 SetStatus(value);
74 return *this;
75 }
77 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
78
79 private:
80 User m_user;
81
82 Aws::String m_requestId;
83
84 int m_status{0};
85 Aws::Http::HttpResponseCode m_HttpResponseCode;
86 bool m_userHasBeenSet = false;
87 bool m_requestIdHasBeenSet = false;
88 bool m_statusHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace QuickSight
93} // namespace Aws
UpdateUserResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_QUICKSIGHT_API UpdateUserResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QUICKSIGHT_API UpdateUserResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
UpdateUserResult & WithUser(UserT &&value)
AWS_QUICKSIGHT_API UpdateUserResult()=default
UpdateUserResult & WithStatus(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue