AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
AccountAggregationSource.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 ConfigService {
21namespace Model {
22
29 public:
30 AWS_CONFIGSERVICE_API AccountAggregationSource() = default;
31 AWS_CONFIGSERVICE_API AccountAggregationSource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
40 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
41 template <typename AccountIdsT = Aws::Vector<Aws::String>>
42 void SetAccountIds(AccountIdsT&& value) {
43 m_accountIdsHasBeenSet = true;
44 m_accountIds = std::forward<AccountIdsT>(value);
45 }
46 template <typename AccountIdsT = Aws::Vector<Aws::String>>
48 SetAccountIds(std::forward<AccountIdsT>(value));
49 return *this;
50 }
51 template <typename AccountIdsT = Aws::String>
53 m_accountIdsHasBeenSet = true;
54 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
55 return *this;
56 }
58
60
63 inline bool GetAllAwsRegions() const { return m_allAwsRegions; }
64 inline bool AllAwsRegionsHasBeenSet() const { return m_allAwsRegionsHasBeenSet; }
65 inline void SetAllAwsRegions(bool value) {
66 m_allAwsRegionsHasBeenSet = true;
67 m_allAwsRegions = value;
68 }
70 SetAllAwsRegions(value);
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Aws::String>& GetAwsRegions() const { return m_awsRegions; }
80 inline bool AwsRegionsHasBeenSet() const { return m_awsRegionsHasBeenSet; }
81 template <typename AwsRegionsT = Aws::Vector<Aws::String>>
82 void SetAwsRegions(AwsRegionsT&& value) {
83 m_awsRegionsHasBeenSet = true;
84 m_awsRegions = std::forward<AwsRegionsT>(value);
85 }
86 template <typename AwsRegionsT = Aws::Vector<Aws::String>>
88 SetAwsRegions(std::forward<AwsRegionsT>(value));
89 return *this;
90 }
91 template <typename AwsRegionsT = Aws::String>
93 m_awsRegionsHasBeenSet = true;
94 m_awsRegions.emplace_back(std::forward<AwsRegionsT>(value));
95 return *this;
96 }
98 private:
99 Aws::Vector<Aws::String> m_accountIds;
100
101 bool m_allAwsRegions{false};
102
103 Aws::Vector<Aws::String> m_awsRegions;
104 bool m_accountIdsHasBeenSet = false;
105 bool m_allAwsRegionsHasBeenSet = false;
106 bool m_awsRegionsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace ConfigService
111} // 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