AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResourceDataSyncSourceWithState.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/ResourceDataSyncAwsOrganizationsSource.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM
24{
25namespace Model
26{
27
42 {
43 public:
44 AWS_SSM_API ResourceDataSyncSourceWithState() = default;
48
49
51
56 inline const Aws::String& GetSourceType() const { return m_sourceType; }
57 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
58 template<typename SourceTypeT = Aws::String>
59 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
60 template<typename SourceTypeT = Aws::String>
61 ResourceDataSyncSourceWithState& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
63
65
69 inline const ResourceDataSyncAwsOrganizationsSource& GetAwsOrganizationsSource() const { return m_awsOrganizationsSource; }
70 inline bool AwsOrganizationsSourceHasBeenSet() const { return m_awsOrganizationsSourceHasBeenSet; }
71 template<typename AwsOrganizationsSourceT = ResourceDataSyncAwsOrganizationsSource>
72 void SetAwsOrganizationsSource(AwsOrganizationsSourceT&& value) { m_awsOrganizationsSourceHasBeenSet = true; m_awsOrganizationsSource = std::forward<AwsOrganizationsSourceT>(value); }
73 template<typename AwsOrganizationsSourceT = ResourceDataSyncAwsOrganizationsSource>
74 ResourceDataSyncSourceWithState& WithAwsOrganizationsSource(AwsOrganizationsSourceT&& value) { SetAwsOrganizationsSource(std::forward<AwsOrganizationsSourceT>(value)); return *this;}
76
78
82 inline const Aws::Vector<Aws::String>& GetSourceRegions() const { return m_sourceRegions; }
83 inline bool SourceRegionsHasBeenSet() const { return m_sourceRegionsHasBeenSet; }
84 template<typename SourceRegionsT = Aws::Vector<Aws::String>>
85 void SetSourceRegions(SourceRegionsT&& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions = std::forward<SourceRegionsT>(value); }
86 template<typename SourceRegionsT = Aws::Vector<Aws::String>>
87 ResourceDataSyncSourceWithState& WithSourceRegions(SourceRegionsT&& value) { SetSourceRegions(std::forward<SourceRegionsT>(value)); return *this;}
88 template<typename SourceRegionsT = Aws::String>
89 ResourceDataSyncSourceWithState& AddSourceRegions(SourceRegionsT&& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions.emplace_back(std::forward<SourceRegionsT>(value)); return *this; }
91
93
97 inline bool GetIncludeFutureRegions() const { return m_includeFutureRegions; }
98 inline bool IncludeFutureRegionsHasBeenSet() const { return m_includeFutureRegionsHasBeenSet; }
99 inline void SetIncludeFutureRegions(bool value) { m_includeFutureRegionsHasBeenSet = true; m_includeFutureRegions = value; }
102
104
114 inline const Aws::String& GetState() const { return m_state; }
115 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
116 template<typename StateT = Aws::String>
117 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
118 template<typename StateT = Aws::String>
119 ResourceDataSyncSourceWithState& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
121
123
133 inline bool GetEnableAllOpsDataSources() const { return m_enableAllOpsDataSources; }
134 inline bool EnableAllOpsDataSourcesHasBeenSet() const { return m_enableAllOpsDataSourcesHasBeenSet; }
135 inline void SetEnableAllOpsDataSources(bool value) { m_enableAllOpsDataSourcesHasBeenSet = true; m_enableAllOpsDataSources = value; }
138 private:
139
140 Aws::String m_sourceType;
141 bool m_sourceTypeHasBeenSet = false;
142
143 ResourceDataSyncAwsOrganizationsSource m_awsOrganizationsSource;
144 bool m_awsOrganizationsSourceHasBeenSet = false;
145
146 Aws::Vector<Aws::String> m_sourceRegions;
147 bool m_sourceRegionsHasBeenSet = false;
148
149 bool m_includeFutureRegions{false};
150 bool m_includeFutureRegionsHasBeenSet = false;
151
152 Aws::String m_state;
153 bool m_stateHasBeenSet = false;
154
155 bool m_enableAllOpsDataSources{false};
156 bool m_enableAllOpsDataSourcesHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace SSM
161} // namespace Aws
void SetAwsOrganizationsSource(AwsOrganizationsSourceT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceDataSyncSourceWithState & WithState(StateT &&value)
ResourceDataSyncSourceWithState & WithAwsOrganizationsSource(AwsOrganizationsSourceT &&value)
ResourceDataSyncSourceWithState & WithSourceType(SourceTypeT &&value)
const ResourceDataSyncAwsOrganizationsSource & GetAwsOrganizationsSource() const
AWS_SSM_API ResourceDataSyncSourceWithState & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceDataSyncSourceWithState & WithEnableAllOpsDataSources(bool value)
ResourceDataSyncSourceWithState & AddSourceRegions(SourceRegionsT &&value)
const Aws::Vector< Aws::String > & GetSourceRegions() const
ResourceDataSyncSourceWithState & WithIncludeFutureRegions(bool value)
ResourceDataSyncSourceWithState & WithSourceRegions(SourceRegionsT &&value)
AWS_SSM_API ResourceDataSyncSourceWithState(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue