AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Scope.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/auditmanager/model/AWSAccount.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AuditManager
23{
24namespace Model
25{
26
41 class Scope
42 {
43 public:
44 AWS_AUDITMANAGER_API Scope() = default;
45 AWS_AUDITMANAGER_API Scope(Aws::Utils::Json::JsonView jsonValue);
46 AWS_AUDITMANAGER_API Scope& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::Vector<AWSAccount>& GetAwsAccounts() const { return m_awsAccounts; }
56 inline bool AwsAccountsHasBeenSet() const { return m_awsAccountsHasBeenSet; }
57 template<typename AwsAccountsT = Aws::Vector<AWSAccount>>
58 void SetAwsAccounts(AwsAccountsT&& value) { m_awsAccountsHasBeenSet = true; m_awsAccounts = std::forward<AwsAccountsT>(value); }
59 template<typename AwsAccountsT = Aws::Vector<AWSAccount>>
60 Scope& WithAwsAccounts(AwsAccountsT&& value) { SetAwsAccounts(std::forward<AwsAccountsT>(value)); return *this;}
61 template<typename AwsAccountsT = AWSAccount>
62 Scope& AddAwsAccounts(AwsAccountsT&& value) { m_awsAccountsHasBeenSet = true; m_awsAccounts.emplace_back(std::forward<AwsAccountsT>(value)); return *this; }
64 private:
65
66 Aws::Vector<AWSAccount> m_awsAccounts;
67 bool m_awsAccountsHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace AuditManager
72} // namespace Aws
Scope & WithAwsAccounts(AwsAccountsT &&value)
Definition Scope.h:60
AWS_AUDITMANAGER_API Scope & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AwsAccountsHasBeenSet() const
Definition Scope.h:56
AWS_AUDITMANAGER_API Scope()=default
void SetAwsAccounts(AwsAccountsT &&value)
Definition Scope.h:58
AWS_AUDITMANAGER_API Scope(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AWSAccount > & GetAwsAccounts() const
Definition Scope.h:55
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Scope & AddAwsAccounts(AwsAccountsT &&value)
Definition Scope.h:62
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue