7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/model/Account.h>
11#include <aws/inspector2/model/FailedAccount.h>
16template<
typename RESULT_TYPE>
17class AmazonWebServiceResult;
44 template<
typename AccountsT = Aws::Vector<Account>>
45 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet =
true; m_accounts = std::forward<AccountsT>(value); }
46 template<
typename AccountsT = Aws::Vector<Account>>
48 template<
typename AccountsT = Account>
49 EnableResult&
AddAccounts(AccountsT&& value) { m_accountsHasBeenSet =
true; m_accounts.emplace_back(std::forward<AccountsT>(value));
return *
this; }
58 template<
typename FailedAccountsT = Aws::Vector<FailedAccount>>
59 void SetFailedAccounts(FailedAccountsT&& value) { m_failedAccountsHasBeenSet =
true; m_failedAccounts = std::forward<FailedAccountsT>(value); }
60 template<
typename FailedAccountsT = Aws::Vector<FailedAccount>>
62 template<
typename FailedAccountsT = FailedAccount>
63 EnableResult&
AddFailedAccounts(FailedAccountsT&& value) { m_failedAccountsHasBeenSet =
true; m_failedAccounts.emplace_back(std::forward<FailedAccountsT>(value));
return *
this; }
69 template<
typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
71 template<
typename RequestIdT = Aws::String>
77 bool m_accountsHasBeenSet =
false;
80 bool m_failedAccountsHasBeenSet =
false;
83 bool m_requestIdHasBeenSet =
false;
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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue