AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
48
49
51
56 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
57 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
58 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
59 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
60 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
61 inline ResourceDataSyncSourceWithState& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
62 inline ResourceDataSyncSourceWithState& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
63 inline ResourceDataSyncSourceWithState& WithSourceType(const char* value) { SetSourceType(value); return *this;}
65
67
71 inline const ResourceDataSyncAwsOrganizationsSource& GetAwsOrganizationsSource() const{ return m_awsOrganizationsSource; }
72 inline bool AwsOrganizationsSourceHasBeenSet() const { return m_awsOrganizationsSourceHasBeenSet; }
73 inline void SetAwsOrganizationsSource(const ResourceDataSyncAwsOrganizationsSource& value) { m_awsOrganizationsSourceHasBeenSet = true; m_awsOrganizationsSource = value; }
74 inline void SetAwsOrganizationsSource(ResourceDataSyncAwsOrganizationsSource&& value) { m_awsOrganizationsSourceHasBeenSet = true; m_awsOrganizationsSource = std::move(value); }
78
80
84 inline const Aws::Vector<Aws::String>& GetSourceRegions() const{ return m_sourceRegions; }
85 inline bool SourceRegionsHasBeenSet() const { return m_sourceRegionsHasBeenSet; }
86 inline void SetSourceRegions(const Aws::Vector<Aws::String>& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions = value; }
87 inline void SetSourceRegions(Aws::Vector<Aws::String>&& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions = std::move(value); }
90 inline ResourceDataSyncSourceWithState& AddSourceRegions(const Aws::String& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions.push_back(value); return *this; }
91 inline ResourceDataSyncSourceWithState& AddSourceRegions(Aws::String&& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions.push_back(std::move(value)); return *this; }
92 inline ResourceDataSyncSourceWithState& AddSourceRegions(const char* value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions.push_back(value); return *this; }
94
96
100 inline bool GetIncludeFutureRegions() const{ return m_includeFutureRegions; }
101 inline bool IncludeFutureRegionsHasBeenSet() const { return m_includeFutureRegionsHasBeenSet; }
102 inline void SetIncludeFutureRegions(bool value) { m_includeFutureRegionsHasBeenSet = true; m_includeFutureRegions = value; }
105
107
117 inline const Aws::String& GetState() const{ return m_state; }
118 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
119 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
120 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
121 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
122 inline ResourceDataSyncSourceWithState& WithState(const Aws::String& value) { SetState(value); return *this;}
123 inline ResourceDataSyncSourceWithState& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
124 inline ResourceDataSyncSourceWithState& WithState(const char* value) { SetState(value); return *this;}
126
128
138 inline bool GetEnableAllOpsDataSources() const{ return m_enableAllOpsDataSources; }
139 inline bool EnableAllOpsDataSourcesHasBeenSet() const { return m_enableAllOpsDataSourcesHasBeenSet; }
140 inline void SetEnableAllOpsDataSources(bool value) { m_enableAllOpsDataSourcesHasBeenSet = true; m_enableAllOpsDataSources = value; }
143 private:
144
145 Aws::String m_sourceType;
146 bool m_sourceTypeHasBeenSet = false;
147
148 ResourceDataSyncAwsOrganizationsSource m_awsOrganizationsSource;
149 bool m_awsOrganizationsSourceHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_sourceRegions;
152 bool m_sourceRegionsHasBeenSet = false;
153
154 bool m_includeFutureRegions;
155 bool m_includeFutureRegionsHasBeenSet = false;
156
157 Aws::String m_state;
158 bool m_stateHasBeenSet = false;
159
160 bool m_enableAllOpsDataSources;
161 bool m_enableAllOpsDataSourcesHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace SSM
166} // namespace Aws
void SetAwsOrganizationsSource(ResourceDataSyncAwsOrganizationsSource &&value)
ResourceDataSyncSourceWithState & WithSourceRegions(Aws::Vector< Aws::String > &&value)
void SetSourceRegions(const Aws::Vector< Aws::String > &value)
ResourceDataSyncSourceWithState & AddSourceRegions(Aws::String &&value)
ResourceDataSyncSourceWithState & WithSourceType(const char *value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceDataSyncSourceWithState & WithSourceType(Aws::String &&value)
ResourceDataSyncSourceWithState & WithAwsOrganizationsSource(ResourceDataSyncAwsOrganizationsSource &&value)
void SetAwsOrganizationsSource(const ResourceDataSyncAwsOrganizationsSource &value)
void SetSourceRegions(Aws::Vector< Aws::String > &&value)
ResourceDataSyncSourceWithState & WithSourceType(const Aws::String &value)
ResourceDataSyncSourceWithState & AddSourceRegions(const Aws::String &value)
ResourceDataSyncSourceWithState & WithState(Aws::String &&value)
ResourceDataSyncSourceWithState & WithAwsOrganizationsSource(const ResourceDataSyncAwsOrganizationsSource &value)
const ResourceDataSyncAwsOrganizationsSource & GetAwsOrganizationsSource() const
AWS_SSM_API ResourceDataSyncSourceWithState & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceDataSyncSourceWithState & WithState(const char *value)
ResourceDataSyncSourceWithState & WithEnableAllOpsDataSources(bool value)
ResourceDataSyncSourceWithState & WithSourceRegions(const Aws::Vector< Aws::String > &value)
ResourceDataSyncSourceWithState & AddSourceRegions(const char *value)
ResourceDataSyncSourceWithState & WithState(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSourceRegions() const
ResourceDataSyncSourceWithState & WithIncludeFutureRegions(bool 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