AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DisableResult.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 DisableResult();
36
37
39
43 inline const Aws::Vector<Account>& GetAccounts() const{ return m_accounts; }
44 inline void SetAccounts(const Aws::Vector<Account>& value) { m_accounts = value; }
45 inline void SetAccounts(Aws::Vector<Account>&& value) { m_accounts = std::move(value); }
46 inline DisableResult& WithAccounts(const Aws::Vector<Account>& value) { SetAccounts(value); return *this;}
47 inline DisableResult& WithAccounts(Aws::Vector<Account>&& value) { SetAccounts(std::move(value)); return *this;}
48 inline DisableResult& AddAccounts(const Account& value) { m_accounts.push_back(value); return *this; }
49 inline DisableResult& AddAccounts(Account&& value) { m_accounts.push_back(std::move(value)); return *this; }
51
53
57 inline const Aws::Vector<FailedAccount>& GetFailedAccounts() const{ return m_failedAccounts; }
58 inline void SetFailedAccounts(const Aws::Vector<FailedAccount>& value) { m_failedAccounts = value; }
59 inline void SetFailedAccounts(Aws::Vector<FailedAccount>&& value) { m_failedAccounts = std::move(value); }
61 inline DisableResult& WithFailedAccounts(Aws::Vector<FailedAccount>&& value) { SetFailedAccounts(std::move(value)); return *this;}
62 inline DisableResult& AddFailedAccounts(const FailedAccount& value) { m_failedAccounts.push_back(value); return *this; }
63 inline DisableResult& AddFailedAccounts(FailedAccount&& value) { m_failedAccounts.push_back(std::move(value)); return *this; }
65
67
68 inline const Aws::String& GetRequestId() const{ return m_requestId; }
69 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
70 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
71 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
72 inline DisableResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
73 inline DisableResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
74 inline DisableResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
76 private:
77
78 Aws::Vector<Account> m_accounts;
79
80 Aws::Vector<FailedAccount> m_failedAccounts;
81
82 Aws::String m_requestId;
83 };
84
85} // namespace Model
86} // namespace Inspector2
87} // namespace Aws
DisableResult & WithFailedAccounts(const Aws::Vector< FailedAccount > &value)
DisableResult & AddAccounts(const Account &value)
void SetFailedAccounts(const Aws::Vector< FailedAccount > &value)
DisableResult & AddAccounts(Account &&value)
DisableResult & WithRequestId(const Aws::String &value)
DisableResult & WithAccounts(Aws::Vector< Account > &&value)
const Aws::String & GetRequestId() const
DisableResult & AddFailedAccounts(FailedAccount &&value)
void SetRequestId(const char *value)
const Aws::Vector< FailedAccount > & GetFailedAccounts() const
AWS_INSPECTOR2_API DisableResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_INSPECTOR2_API DisableResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetFailedAccounts(Aws::Vector< FailedAccount > &&value)
DisableResult & WithFailedAccounts(Aws::Vector< FailedAccount > &&value)
DisableResult & AddFailedAccounts(const FailedAccount &value)
void SetRequestId(Aws::String &&value)
const Aws::Vector< Account > & GetAccounts() const
void SetAccounts(const Aws::Vector< Account > &value)
DisableResult & WithAccounts(const Aws::Vector< Account > &value)
DisableResult & WithRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
DisableResult & WithRequestId(const char *value)
void SetAccounts(Aws::Vector< Account > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue