AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ResourceDataSyncSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/ResourceDataSyncAwsOrganizationsSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
31 public:
32 AWS_SSM_API ResourceDataSyncSource() = default;
36
38
43 inline const Aws::String& GetSourceType() const { return m_sourceType; }
44 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
45 template <typename SourceTypeT = Aws::String>
46 void SetSourceType(SourceTypeT&& value) {
47 m_sourceTypeHasBeenSet = true;
48 m_sourceType = std::forward<SourceTypeT>(value);
49 }
50 template <typename SourceTypeT = Aws::String>
51 ResourceDataSyncSource& WithSourceType(SourceTypeT&& value) {
52 SetSourceType(std::forward<SourceTypeT>(value));
53 return *this;
54 }
56
58
62 inline const ResourceDataSyncAwsOrganizationsSource& GetAwsOrganizationsSource() const { return m_awsOrganizationsSource; }
63 inline bool AwsOrganizationsSourceHasBeenSet() const { return m_awsOrganizationsSourceHasBeenSet; }
64 template <typename AwsOrganizationsSourceT = ResourceDataSyncAwsOrganizationsSource>
65 void SetAwsOrganizationsSource(AwsOrganizationsSourceT&& value) {
66 m_awsOrganizationsSourceHasBeenSet = true;
67 m_awsOrganizationsSource = std::forward<AwsOrganizationsSourceT>(value);
68 }
69 template <typename AwsOrganizationsSourceT = ResourceDataSyncAwsOrganizationsSource>
70 ResourceDataSyncSource& WithAwsOrganizationsSource(AwsOrganizationsSourceT&& value) {
71 SetAwsOrganizationsSource(std::forward<AwsOrganizationsSourceT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<Aws::String>& GetSourceRegions() const { return m_sourceRegions; }
82 inline bool SourceRegionsHasBeenSet() const { return m_sourceRegionsHasBeenSet; }
83 template <typename SourceRegionsT = Aws::Vector<Aws::String>>
84 void SetSourceRegions(SourceRegionsT&& value) {
85 m_sourceRegionsHasBeenSet = true;
86 m_sourceRegions = std::forward<SourceRegionsT>(value);
87 }
88 template <typename SourceRegionsT = Aws::Vector<Aws::String>>
89 ResourceDataSyncSource& WithSourceRegions(SourceRegionsT&& value) {
90 SetSourceRegions(std::forward<SourceRegionsT>(value));
91 return *this;
92 }
93 template <typename SourceRegionsT = Aws::String>
94 ResourceDataSyncSource& AddSourceRegions(SourceRegionsT&& value) {
95 m_sourceRegionsHasBeenSet = true;
96 m_sourceRegions.emplace_back(std::forward<SourceRegionsT>(value));
97 return *this;
98 }
100
102
106 inline bool GetIncludeFutureRegions() const { return m_includeFutureRegions; }
107 inline bool IncludeFutureRegionsHasBeenSet() const { return m_includeFutureRegionsHasBeenSet; }
108 inline void SetIncludeFutureRegions(bool value) {
109 m_includeFutureRegionsHasBeenSet = true;
110 m_includeFutureRegions = value;
111 }
114 return *this;
115 }
117
119
129 inline bool GetEnableAllOpsDataSources() const { return m_enableAllOpsDataSources; }
130 inline bool EnableAllOpsDataSourcesHasBeenSet() const { return m_enableAllOpsDataSourcesHasBeenSet; }
131 inline void SetEnableAllOpsDataSources(bool value) {
132 m_enableAllOpsDataSourcesHasBeenSet = true;
133 m_enableAllOpsDataSources = value;
134 }
137 return *this;
138 }
140 private:
141 Aws::String m_sourceType;
142
143 ResourceDataSyncAwsOrganizationsSource m_awsOrganizationsSource;
144
145 Aws::Vector<Aws::String> m_sourceRegions;
146
147 bool m_includeFutureRegions{false};
148
149 bool m_enableAllOpsDataSources{false};
150 bool m_sourceTypeHasBeenSet = false;
151 bool m_awsOrganizationsSourceHasBeenSet = false;
152 bool m_sourceRegionsHasBeenSet = false;
153 bool m_includeFutureRegionsHasBeenSet = false;
154 bool m_enableAllOpsDataSourcesHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace SSM
159} // namespace Aws
ResourceDataSyncSource & WithEnableAllOpsDataSources(bool value)
AWS_SSM_API ResourceDataSyncSource(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceDataSyncSource & WithAwsOrganizationsSource(AwsOrganizationsSourceT &&value)
ResourceDataSyncSource & WithSourceRegions(SourceRegionsT &&value)
void SetSourceRegions(SourceRegionsT &&value)
AWS_SSM_API ResourceDataSyncSource()=default
const ResourceDataSyncAwsOrganizationsSource & GetAwsOrganizationsSource() const
AWS_SSM_API ResourceDataSyncSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAwsOrganizationsSource(AwsOrganizationsSourceT &&value)
const Aws::Vector< Aws::String > & GetSourceRegions() const
ResourceDataSyncSource & WithIncludeFutureRegions(bool value)
ResourceDataSyncSource & AddSourceRegions(SourceRegionsT &&value)
ResourceDataSyncSource & WithSourceType(SourceTypeT &&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