AWS SDK for C++

AWS SDK for C++ Version 1.11.789

Loading...
Searching...
No Matches
GetAdminAccountResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fms/FMS_EXPORTS.h>
10#include <aws/fms/model/AccountRoleStatus.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 FMS {
24namespace Model {
26 public:
27 AWS_FMS_API GetAdminAccountResult() = default;
30
32
35 inline const Aws::String& GetAdminAccount() const { return m_adminAccount; }
36 template <typename AdminAccountT = Aws::String>
37 void SetAdminAccount(AdminAccountT&& value) {
38 m_adminAccountHasBeenSet = true;
39 m_adminAccount = std::forward<AdminAccountT>(value);
40 }
41 template <typename AdminAccountT = Aws::String>
42 GetAdminAccountResult& WithAdminAccount(AdminAccountT&& value) {
43 SetAdminAccount(std::forward<AdminAccountT>(value));
44 return *this;
45 }
47
49
53 inline AccountRoleStatus GetRoleStatus() const { return m_roleStatus; }
54 inline void SetRoleStatus(AccountRoleStatus value) {
55 m_roleStatusHasBeenSet = true;
56 m_roleStatus = value;
57 }
59 SetRoleStatus(value);
60 return *this;
61 }
63
65
66 inline const Aws::String& GetRequestId() const { return m_requestId; }
67 template <typename RequestIdT = Aws::String>
68 void SetRequestId(RequestIdT&& value) {
69 m_requestIdHasBeenSet = true;
70 m_requestId = std::forward<RequestIdT>(value);
71 }
72 template <typename RequestIdT = Aws::String>
73 GetAdminAccountResult& WithRequestId(RequestIdT&& value) {
74 SetRequestId(std::forward<RequestIdT>(value));
75 return *this;
76 }
78 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
79
80 private:
81 Aws::String m_adminAccount;
82
84
85 Aws::String m_requestId;
86 Aws::Http::HttpResponseCode m_HttpResponseCode;
87 bool m_adminAccountHasBeenSet = false;
88 bool m_roleStatusHasBeenSet = false;
89 bool m_requestIdHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace FMS
94} // namespace Aws
AWS_FMS_API GetAdminAccountResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetAdminAccount() const
GetAdminAccountResult & WithAdminAccount(AdminAccountT &&value)
AWS_FMS_API GetAdminAccountResult()=default
GetAdminAccountResult & WithRequestId(RequestIdT &&value)
AWS_FMS_API GetAdminAccountResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetRoleStatus(AccountRoleStatus value)
void SetAdminAccount(AdminAccountT &&value)
GetAdminAccountResult & WithRoleStatus(AccountRoleStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue