AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
EnableResult.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/inspector2/Inspector2_EXPORTS.h>
11#include <aws/inspector2/model/Account.h>
12#include <aws/inspector2/model/FailedAccount.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 Inspector2 {
26namespace Model {
28 public:
29 AWS_INSPECTOR2_API EnableResult() = default;
32
34
38 inline const Aws::Vector<Account>& GetAccounts() const { return m_accounts; }
39 template <typename AccountsT = Aws::Vector<Account>>
40 void SetAccounts(AccountsT&& value) {
41 m_accountsHasBeenSet = true;
42 m_accounts = std::forward<AccountsT>(value);
43 }
44 template <typename AccountsT = Aws::Vector<Account>>
45 EnableResult& WithAccounts(AccountsT&& value) {
46 SetAccounts(std::forward<AccountsT>(value));
47 return *this;
48 }
49 template <typename AccountsT = Account>
50 EnableResult& AddAccounts(AccountsT&& value) {
51 m_accountsHasBeenSet = true;
52 m_accounts.emplace_back(std::forward<AccountsT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<FailedAccount>& GetFailedAccounts() const { return m_failedAccounts; }
63 template <typename FailedAccountsT = Aws::Vector<FailedAccount>>
64 void SetFailedAccounts(FailedAccountsT&& value) {
65 m_failedAccountsHasBeenSet = true;
66 m_failedAccounts = std::forward<FailedAccountsT>(value);
67 }
68 template <typename FailedAccountsT = Aws::Vector<FailedAccount>>
69 EnableResult& WithFailedAccounts(FailedAccountsT&& value) {
70 SetFailedAccounts(std::forward<FailedAccountsT>(value));
71 return *this;
72 }
73 template <typename FailedAccountsT = FailedAccount>
74 EnableResult& AddFailedAccounts(FailedAccountsT&& value) {
75 m_failedAccountsHasBeenSet = true;
76 m_failedAccounts.emplace_back(std::forward<FailedAccountsT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
90 EnableResult& WithRequestId(RequestIdT&& value) {
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 Aws::Vector<Account> m_accounts;
99
100 Aws::Vector<FailedAccount> m_failedAccounts;
101
102 Aws::String m_requestId;
103 Aws::Http::HttpResponseCode m_HttpResponseCode;
104 bool m_accountsHasBeenSet = false;
105 bool m_failedAccountsHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Inspector2
111} // namespace Aws
EnableResult & WithRequestId(RequestIdT &&value)
EnableResult & AddAccounts(AccountsT &&value)
AWS_INSPECTOR2_API EnableResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
EnableResult & WithAccounts(AccountsT &&value)
const Aws::Vector< Account > & GetAccounts() const
EnableResult & WithFailedAccounts(FailedAccountsT &&value)
void SetAccounts(AccountsT &&value)
AWS_INSPECTOR2_API EnableResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_INSPECTOR2_API EnableResult()=default
EnableResult & AddFailedAccounts(FailedAccountsT &&value)
const Aws::String & GetRequestId() const
void SetFailedAccounts(FailedAccountsT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::Vector< FailedAccount > & GetFailedAccounts() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue