AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
OrganizationAggregationSource.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
30 public:
31 AWS_CONFIGSERVICE_API OrganizationAggregationSource() = default;
34 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
42 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
43 template <typename RoleArnT = Aws::String>
44 void SetRoleArn(RoleArnT&& value) {
45 m_roleArnHasBeenSet = true;
46 m_roleArn = std::forward<RoleArnT>(value);
47 }
48 template <typename RoleArnT = Aws::String>
50 SetRoleArn(std::forward<RoleArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetAwsRegions() const { return m_awsRegions; }
60 inline bool AwsRegionsHasBeenSet() const { return m_awsRegionsHasBeenSet; }
61 template <typename AwsRegionsT = Aws::Vector<Aws::String>>
62 void SetAwsRegions(AwsRegionsT&& value) {
63 m_awsRegionsHasBeenSet = true;
64 m_awsRegions = std::forward<AwsRegionsT>(value);
65 }
66 template <typename AwsRegionsT = Aws::Vector<Aws::String>>
68 SetAwsRegions(std::forward<AwsRegionsT>(value));
69 return *this;
70 }
71 template <typename AwsRegionsT = Aws::String>
73 m_awsRegionsHasBeenSet = true;
74 m_awsRegions.emplace_back(std::forward<AwsRegionsT>(value));
75 return *this;
76 }
78
80
83 inline bool GetAllAwsRegions() const { return m_allAwsRegions; }
84 inline bool AllAwsRegionsHasBeenSet() const { return m_allAwsRegionsHasBeenSet; }
85 inline void SetAllAwsRegions(bool value) {
86 m_allAwsRegionsHasBeenSet = true;
87 m_allAwsRegions = value;
88 }
90 SetAllAwsRegions(value);
91 return *this;
92 }
94 private:
95 Aws::String m_roleArn;
96
97 Aws::Vector<Aws::String> m_awsRegions;
98
99 bool m_allAwsRegions{false};
100 bool m_roleArnHasBeenSet = false;
101 bool m_awsRegionsHasBeenSet = false;
102 bool m_allAwsRegionsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ConfigService
107} // namespace Aws
AWS_CONFIGSERVICE_API OrganizationAggregationSource & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationAggregationSource & WithAwsRegions(AwsRegionsT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONFIGSERVICE_API OrganizationAggregationSource()=default
OrganizationAggregationSource & AddAwsRegions(AwsRegionsT &&value)
AWS_CONFIGSERVICE_API OrganizationAggregationSource(Aws::Utils::Json::JsonView jsonValue)
OrganizationAggregationSource & WithRoleArn(RoleArnT &&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