AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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
34 {
35 public:
36 AWS_CONFIGSERVICE_API OrganizationAggregationSource() = default;
39 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
48 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
49 template<typename RoleArnT = Aws::String>
50 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
51 template<typename RoleArnT = Aws::String>
52 OrganizationAggregationSource& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
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) { m_awsRegionsHasBeenSet = true; m_awsRegions = std::forward<AwsRegionsT>(value); }
63 template<typename AwsRegionsT = Aws::Vector<Aws::String>>
64 OrganizationAggregationSource& WithAwsRegions(AwsRegionsT&& value) { SetAwsRegions(std::forward<AwsRegionsT>(value)); return *this;}
65 template<typename AwsRegionsT = Aws::String>
66 OrganizationAggregationSource& AddAwsRegions(AwsRegionsT&& value) { m_awsRegionsHasBeenSet = true; m_awsRegions.emplace_back(std::forward<AwsRegionsT>(value)); return *this; }
68
70
73 inline bool GetAllAwsRegions() const { return m_allAwsRegions; }
74 inline bool AllAwsRegionsHasBeenSet() const { return m_allAwsRegionsHasBeenSet; }
75 inline void SetAllAwsRegions(bool value) { m_allAwsRegionsHasBeenSet = true; m_allAwsRegions = value; }
76 inline OrganizationAggregationSource& WithAllAwsRegions(bool value) { SetAllAwsRegions(value); return *this;}
78 private:
79
80 Aws::String m_roleArn;
81 bool m_roleArnHasBeenSet = false;
82
83 Aws::Vector<Aws::String> m_awsRegions;
84 bool m_awsRegionsHasBeenSet = false;
85
86 bool m_allAwsRegions{false};
87 bool m_allAwsRegionsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ConfigService
92} // 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