AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccountAggregationSource.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ConfigService
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONFIGSERVICE_API AccountAggregationSource() = default;
36 AWS_CONFIGSERVICE_API AccountAggregationSource(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
46 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
47 template<typename AccountIdsT = Aws::Vector<Aws::String>>
48 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
49 template<typename AccountIdsT = Aws::Vector<Aws::String>>
50 AccountAggregationSource& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
51 template<typename AccountIdsT = Aws::String>
52 AccountAggregationSource& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
54
56
59 inline bool GetAllAwsRegions() const { return m_allAwsRegions; }
60 inline bool AllAwsRegionsHasBeenSet() const { return m_allAwsRegionsHasBeenSet; }
61 inline void SetAllAwsRegions(bool value) { m_allAwsRegionsHasBeenSet = true; m_allAwsRegions = value; }
62 inline AccountAggregationSource& WithAllAwsRegions(bool value) { SetAllAwsRegions(value); return *this;}
64
66
69 inline const Aws::Vector<Aws::String>& GetAwsRegions() const { return m_awsRegions; }
70 inline bool AwsRegionsHasBeenSet() const { return m_awsRegionsHasBeenSet; }
71 template<typename AwsRegionsT = Aws::Vector<Aws::String>>
72 void SetAwsRegions(AwsRegionsT&& value) { m_awsRegionsHasBeenSet = true; m_awsRegions = std::forward<AwsRegionsT>(value); }
73 template<typename AwsRegionsT = Aws::Vector<Aws::String>>
74 AccountAggregationSource& WithAwsRegions(AwsRegionsT&& value) { SetAwsRegions(std::forward<AwsRegionsT>(value)); return *this;}
75 template<typename AwsRegionsT = Aws::String>
76 AccountAggregationSource& AddAwsRegions(AwsRegionsT&& value) { m_awsRegionsHasBeenSet = true; m_awsRegions.emplace_back(std::forward<AwsRegionsT>(value)); return *this; }
78 private:
79
80 Aws::Vector<Aws::String> m_accountIds;
81 bool m_accountIdsHasBeenSet = false;
82
83 bool m_allAwsRegions{false};
84 bool m_allAwsRegionsHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_awsRegions;
87 bool m_awsRegionsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ConfigService
92} // namespace Aws
AWS_CONFIGSERVICE_API AccountAggregationSource(Aws::Utils::Json::JsonView jsonValue)
AccountAggregationSource & AddAwsRegions(AwsRegionsT &&value)
AccountAggregationSource & WithAllAwsRegions(bool value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AccountAggregationSource & AddAccountIds(AccountIdsT &&value)
AccountAggregationSource & WithAwsRegions(AwsRegionsT &&value)
AWS_CONFIGSERVICE_API AccountAggregationSource()=default
AWS_CONFIGSERVICE_API AccountAggregationSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAccountIds() const
const Aws::Vector< Aws::String > & GetAwsRegions() const
AccountAggregationSource & WithAccountIds(AccountIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue