AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceDataSyncSource.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
35 {
36 public:
41
42
44
49 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
50 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
51 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
52 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
53 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
54 inline ResourceDataSyncSource& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
55 inline ResourceDataSyncSource& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
56 inline ResourceDataSyncSource& WithSourceType(const char* value) { SetSourceType(value); return *this;}
58
60
64 inline const ResourceDataSyncAwsOrganizationsSource& GetAwsOrganizationsSource() const{ return m_awsOrganizationsSource; }
65 inline bool AwsOrganizationsSourceHasBeenSet() const { return m_awsOrganizationsSourceHasBeenSet; }
66 inline void SetAwsOrganizationsSource(const ResourceDataSyncAwsOrganizationsSource& value) { m_awsOrganizationsSourceHasBeenSet = true; m_awsOrganizationsSource = value; }
67 inline void SetAwsOrganizationsSource(ResourceDataSyncAwsOrganizationsSource&& value) { m_awsOrganizationsSourceHasBeenSet = true; m_awsOrganizationsSource = std::move(value); }
71
73
77 inline const Aws::Vector<Aws::String>& GetSourceRegions() const{ return m_sourceRegions; }
78 inline bool SourceRegionsHasBeenSet() const { return m_sourceRegionsHasBeenSet; }
79 inline void SetSourceRegions(const Aws::Vector<Aws::String>& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions = value; }
80 inline void SetSourceRegions(Aws::Vector<Aws::String>&& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions = std::move(value); }
82 inline ResourceDataSyncSource& WithSourceRegions(Aws::Vector<Aws::String>&& value) { SetSourceRegions(std::move(value)); return *this;}
83 inline ResourceDataSyncSource& AddSourceRegions(const Aws::String& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions.push_back(value); return *this; }
84 inline ResourceDataSyncSource& AddSourceRegions(Aws::String&& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions.push_back(std::move(value)); return *this; }
85 inline ResourceDataSyncSource& AddSourceRegions(const char* value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions.push_back(value); return *this; }
87
89
93 inline bool GetIncludeFutureRegions() const{ return m_includeFutureRegions; }
94 inline bool IncludeFutureRegionsHasBeenSet() const { return m_includeFutureRegionsHasBeenSet; }
95 inline void SetIncludeFutureRegions(bool value) { m_includeFutureRegionsHasBeenSet = true; m_includeFutureRegions = value; }
96 inline ResourceDataSyncSource& WithIncludeFutureRegions(bool value) { SetIncludeFutureRegions(value); return *this;}
98
100
110 inline bool GetEnableAllOpsDataSources() const{ return m_enableAllOpsDataSources; }
111 inline bool EnableAllOpsDataSourcesHasBeenSet() const { return m_enableAllOpsDataSourcesHasBeenSet; }
112 inline void SetEnableAllOpsDataSources(bool value) { m_enableAllOpsDataSourcesHasBeenSet = true; m_enableAllOpsDataSources = value; }
115 private:
116
117 Aws::String m_sourceType;
118 bool m_sourceTypeHasBeenSet = false;
119
120 ResourceDataSyncAwsOrganizationsSource m_awsOrganizationsSource;
121 bool m_awsOrganizationsSourceHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_sourceRegions;
124 bool m_sourceRegionsHasBeenSet = false;
125
126 bool m_includeFutureRegions;
127 bool m_includeFutureRegionsHasBeenSet = false;
128
129 bool m_enableAllOpsDataSources;
130 bool m_enableAllOpsDataSourcesHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace SSM
135} // namespace Aws
ResourceDataSyncSource & WithEnableAllOpsDataSources(bool value)
ResourceDataSyncSource & AddSourceRegions(const char *value)
void SetAwsOrganizationsSource(ResourceDataSyncAwsOrganizationsSource &&value)
AWS_SSM_API ResourceDataSyncSource(Aws::Utils::Json::JsonView jsonValue)
ResourceDataSyncSource & WithSourceType(const Aws::String &value)
ResourceDataSyncSource & AddSourceRegions(Aws::String &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceRegions(Aws::Vector< Aws::String > &&value)
ResourceDataSyncSource & WithAwsOrganizationsSource(const ResourceDataSyncAwsOrganizationsSource &value)
ResourceDataSyncSource & WithSourceRegions(Aws::Vector< Aws::String > &&value)
void SetSourceRegions(const Aws::Vector< Aws::String > &value)
ResourceDataSyncSource & AddSourceRegions(const Aws::String &value)
void SetSourceType(const Aws::String &value)
const ResourceDataSyncAwsOrganizationsSource & GetAwsOrganizationsSource() const
void SetAwsOrganizationsSource(const ResourceDataSyncAwsOrganizationsSource &value)
ResourceDataSyncSource & WithAwsOrganizationsSource(ResourceDataSyncAwsOrganizationsSource &&value)
AWS_SSM_API ResourceDataSyncSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSourceRegions() const
ResourceDataSyncSource & WithSourceType(const char *value)
ResourceDataSyncSource & WithIncludeFutureRegions(bool value)
ResourceDataSyncSource & WithSourceRegions(const Aws::Vector< Aws::String > &value)
ResourceDataSyncSource & WithSourceType(Aws::String &&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