AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Scope.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/model/AWSAccount.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AuditManager {
21namespace Model {
22
37class Scope {
38 public:
39 AWS_AUDITMANAGER_API Scope() = default;
40 AWS_AUDITMANAGER_API Scope(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AUDITMANAGER_API Scope& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
49 inline const Aws::Vector<AWSAccount>& GetAwsAccounts() const { return m_awsAccounts; }
50 inline bool AwsAccountsHasBeenSet() const { return m_awsAccountsHasBeenSet; }
51 template <typename AwsAccountsT = Aws::Vector<AWSAccount>>
52 void SetAwsAccounts(AwsAccountsT&& value) {
53 m_awsAccountsHasBeenSet = true;
54 m_awsAccounts = std::forward<AwsAccountsT>(value);
55 }
56 template <typename AwsAccountsT = Aws::Vector<AWSAccount>>
57 Scope& WithAwsAccounts(AwsAccountsT&& value) {
58 SetAwsAccounts(std::forward<AwsAccountsT>(value));
59 return *this;
60 }
61 template <typename AwsAccountsT = AWSAccount>
62 Scope& AddAwsAccounts(AwsAccountsT&& value) {
63 m_awsAccountsHasBeenSet = true;
64 m_awsAccounts.emplace_back(std::forward<AwsAccountsT>(value));
65 return *this;
66 }
68 private:
69 Aws::Vector<AWSAccount> m_awsAccounts;
70 bool m_awsAccountsHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace AuditManager
75} // namespace Aws
Scope & WithAwsAccounts(AwsAccountsT &&value)
Definition Scope.h:57
AWS_AUDITMANAGER_API Scope & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AwsAccountsHasBeenSet() const
Definition Scope.h:50
AWS_AUDITMANAGER_API Scope()=default
void SetAwsAccounts(AwsAccountsT &&value)
Definition Scope.h:52
AWS_AUDITMANAGER_API Scope(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AWSAccount > & GetAwsAccounts() const
Definition Scope.h:49
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