AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 EnableResult& WithAccounts(const Aws::Vector<Account>& value) { SetAccounts(value); return *this;}
47 inline EnableResult& WithAccounts(Aws::Vector<Account>&& value) { SetAccounts(std::move(value)); return *this;}
48 inline EnableResult& AddAccounts(const Account& value) { m_accounts.push_back(value); return *this; }
49 inline EnableResult& 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); }
60 inline EnableResult& WithFailedAccounts(const Aws::Vector<FailedAccount>& value) { SetFailedAccounts(value); return *this;}
61 inline EnableResult& WithFailedAccounts(Aws::Vector<FailedAccount>&& value) { SetFailedAccounts(std::move(value)); return *this;}
62 inline EnableResult& AddFailedAccounts(const FailedAccount& value) { m_failedAccounts.push_back(value); return *this; }
63 inline EnableResult& 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 EnableResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
73 inline EnableResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
74 inline EnableResult& 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
EnableResult & WithFailedAccounts(Aws::Vector< FailedAccount > &&value)
AWS_INSPECTOR2_API EnableResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
EnableResult & AddFailedAccounts(const FailedAccount &value)
const Aws::Vector< Account > & GetAccounts() const
EnableResult & WithAccounts(const Aws::Vector< Account > &value)
void SetAccounts(const Aws::Vector< Account > &value)
void SetRequestId(const char *value)
AWS_INSPECTOR2_API EnableResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
EnableResult & AddFailedAccounts(FailedAccount &&value)
EnableResult & WithFailedAccounts(const Aws::Vector< FailedAccount > &value)
EnableResult & WithRequestId(Aws::String &&value)
void SetRequestId(Aws::String &&value)
EnableResult & AddAccounts(Account &&value)
const Aws::String & GetRequestId() const
EnableResult & WithAccounts(Aws::Vector< Account > &&value)
void SetAccounts(Aws::Vector< Account > &&value)
EnableResult & WithRequestId(const Aws::String &value)
void SetFailedAccounts(const Aws::Vector< FailedAccount > &value)
const Aws::Vector< FailedAccount > & GetFailedAccounts() const
EnableResult & AddAccounts(const Account &value)
void SetRequestId(const Aws::String &value)
EnableResult & WithRequestId(const char *value)
void SetFailedAccounts(Aws::Vector< FailedAccount > &&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