AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ScopeConfiguration.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConfigService {
21namespace Model {
22
30 public:
31 AWS_CONFIGSERVICE_API ScopeConfiguration() = default;
32 AWS_CONFIGSERVICE_API ScopeConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONFIGSERVICE_API ScopeConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
46 inline const Aws::String& GetScopeType() const { return m_scopeType; }
47 inline bool ScopeTypeHasBeenSet() const { return m_scopeTypeHasBeenSet; }
48 template <typename ScopeTypeT = Aws::String>
49 void SetScopeType(ScopeTypeT&& value) {
50 m_scopeTypeHasBeenSet = true;
51 m_scopeType = std::forward<ScopeTypeT>(value);
52 }
53 template <typename ScopeTypeT = Aws::String>
54 ScopeConfiguration& WithScopeType(ScopeTypeT&& value) {
55 SetScopeType(std::forward<ScopeTypeT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::Vector<Aws::String>& GetScopeValues() const { return m_scopeValues; }
68 inline bool ScopeValuesHasBeenSet() const { return m_scopeValuesHasBeenSet; }
69 template <typename ScopeValuesT = Aws::Vector<Aws::String>>
70 void SetScopeValues(ScopeValuesT&& value) {
71 m_scopeValuesHasBeenSet = true;
72 m_scopeValues = std::forward<ScopeValuesT>(value);
73 }
74 template <typename ScopeValuesT = Aws::Vector<Aws::String>>
75 ScopeConfiguration& WithScopeValues(ScopeValuesT&& value) {
76 SetScopeValues(std::forward<ScopeValuesT>(value));
77 return *this;
78 }
79 template <typename ScopeValuesT = Aws::String>
80 ScopeConfiguration& AddScopeValues(ScopeValuesT&& value) {
81 m_scopeValuesHasBeenSet = true;
82 m_scopeValues.emplace_back(std::forward<ScopeValuesT>(value));
83 return *this;
84 }
86
88
92 inline bool GetAllRegions() const { return m_allRegions; }
93 inline bool AllRegionsHasBeenSet() const { return m_allRegionsHasBeenSet; }
94 inline void SetAllRegions(bool value) {
95 m_allRegionsHasBeenSet = true;
96 m_allRegions = value;
97 }
98 inline ScopeConfiguration& WithAllRegions(bool value) {
99 SetAllRegions(value);
100 return *this;
101 }
103
105
110 inline const Aws::Vector<Aws::String>& GetIncludedRegions() const { return m_includedRegions; }
111 inline bool IncludedRegionsHasBeenSet() const { return m_includedRegionsHasBeenSet; }
112 template <typename IncludedRegionsT = Aws::Vector<Aws::String>>
113 void SetIncludedRegions(IncludedRegionsT&& value) {
114 m_includedRegionsHasBeenSet = true;
115 m_includedRegions = std::forward<IncludedRegionsT>(value);
116 }
117 template <typename IncludedRegionsT = Aws::Vector<Aws::String>>
118 ScopeConfiguration& WithIncludedRegions(IncludedRegionsT&& value) {
119 SetIncludedRegions(std::forward<IncludedRegionsT>(value));
120 return *this;
121 }
122 template <typename IncludedRegionsT = Aws::String>
123 ScopeConfiguration& AddIncludedRegions(IncludedRegionsT&& value) {
124 m_includedRegionsHasBeenSet = true;
125 m_includedRegions.emplace_back(std::forward<IncludedRegionsT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_scopeType;
131
132 Aws::Vector<Aws::String> m_scopeValues;
133
134 bool m_allRegions{false};
135
136 Aws::Vector<Aws::String> m_includedRegions;
137 bool m_scopeTypeHasBeenSet = false;
138 bool m_scopeValuesHasBeenSet = false;
139 bool m_allRegionsHasBeenSet = false;
140 bool m_includedRegionsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace ConfigService
145} // namespace Aws
void SetIncludedRegions(IncludedRegionsT &&value)
AWS_CONFIGSERVICE_API ScopeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API ScopeConfiguration()=default
ScopeConfiguration & AddScopeValues(ScopeValuesT &&value)
ScopeConfiguration & WithScopeValues(ScopeValuesT &&value)
AWS_CONFIGSERVICE_API ScopeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ScopeConfiguration & WithIncludedRegions(IncludedRegionsT &&value)
ScopeConfiguration & WithAllRegions(bool value)
ScopeConfiguration & AddIncludedRegions(IncludedRegionsT &&value)
ScopeConfiguration & WithScopeType(ScopeTypeT &&value)
const Aws::Vector< Aws::String > & GetIncludedRegions() const
const Aws::Vector< Aws::String > & GetScopeValues() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue