AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EnableResult.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Inspector2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_INSPECTOR2_API EnableResult() = default;
36
37
39
43 inline const Aws::Vector<Account>& GetAccounts() const { return m_accounts; }
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>>
47 EnableResult& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
48 template<typename AccountsT = Account>
49 EnableResult& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
51
53
57 inline const Aws::Vector<FailedAccount>& GetFailedAccounts() const { return m_failedAccounts; }
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>>
61 EnableResult& WithFailedAccounts(FailedAccountsT&& value) { SetFailedAccounts(std::forward<FailedAccountsT>(value)); return *this;}
62 template<typename FailedAccountsT = FailedAccount>
63 EnableResult& AddFailedAccounts(FailedAccountsT&& value) { m_failedAccountsHasBeenSet = true; m_failedAccounts.emplace_back(std::forward<FailedAccountsT>(value)); return *this; }
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
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>
72 EnableResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
74 private:
75
76 Aws::Vector<Account> m_accounts;
77 bool m_accountsHasBeenSet = false;
78
79 Aws::Vector<FailedAccount> m_failedAccounts;
80 bool m_failedAccountsHasBeenSet = false;
81
82 Aws::String m_requestId;
83 bool m_requestIdHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Inspector2
88} // 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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue