AWS SDK for C++

AWS SDK for C++ Version 1.11.851

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
41 inline const Aws::String& GetScopeType() const { return m_scopeType; }
42 inline bool ScopeTypeHasBeenSet() const { return m_scopeTypeHasBeenSet; }
43 template <typename ScopeTypeT = Aws::String>
44 void SetScopeType(ScopeTypeT&& value) {
45 m_scopeTypeHasBeenSet = true;
46 m_scopeType = std::forward<ScopeTypeT>(value);
47 }
48 template <typename ScopeTypeT = Aws::String>
49 ScopeConfiguration& WithScopeType(ScopeTypeT&& value) {
50 SetScopeType(std::forward<ScopeTypeT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetScopeValues() const { return m_scopeValues; }
61 inline bool ScopeValuesHasBeenSet() const { return m_scopeValuesHasBeenSet; }
62 template <typename ScopeValuesT = Aws::Vector<Aws::String>>
63 void SetScopeValues(ScopeValuesT&& value) {
64 m_scopeValuesHasBeenSet = true;
65 m_scopeValues = std::forward<ScopeValuesT>(value);
66 }
67 template <typename ScopeValuesT = Aws::Vector<Aws::String>>
68 ScopeConfiguration& WithScopeValues(ScopeValuesT&& value) {
69 SetScopeValues(std::forward<ScopeValuesT>(value));
70 return *this;
71 }
72 template <typename ScopeValuesT = Aws::String>
73 ScopeConfiguration& AddScopeValues(ScopeValuesT&& value) {
74 m_scopeValuesHasBeenSet = true;
75 m_scopeValues.emplace_back(std::forward<ScopeValuesT>(value));
76 return *this;
77 }
79
81
85 inline bool GetAllRegions() const { return m_allRegions; }
86 inline bool AllRegionsHasBeenSet() const { return m_allRegionsHasBeenSet; }
87 inline void SetAllRegions(bool value) {
88 m_allRegionsHasBeenSet = true;
89 m_allRegions = value;
90 }
91 inline ScopeConfiguration& WithAllRegions(bool value) {
92 SetAllRegions(value);
93 return *this;
94 }
96
98
103 inline const Aws::Vector<Aws::String>& GetIncludedRegions() const { return m_includedRegions; }
104 inline bool IncludedRegionsHasBeenSet() const { return m_includedRegionsHasBeenSet; }
105 template <typename IncludedRegionsT = Aws::Vector<Aws::String>>
106 void SetIncludedRegions(IncludedRegionsT&& value) {
107 m_includedRegionsHasBeenSet = true;
108 m_includedRegions = std::forward<IncludedRegionsT>(value);
109 }
110 template <typename IncludedRegionsT = Aws::Vector<Aws::String>>
111 ScopeConfiguration& WithIncludedRegions(IncludedRegionsT&& value) {
112 SetIncludedRegions(std::forward<IncludedRegionsT>(value));
113 return *this;
114 }
115 template <typename IncludedRegionsT = Aws::String>
116 ScopeConfiguration& AddIncludedRegions(IncludedRegionsT&& value) {
117 m_includedRegionsHasBeenSet = true;
118 m_includedRegions.emplace_back(std::forward<IncludedRegionsT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_scopeType;
124
125 Aws::Vector<Aws::String> m_scopeValues;
126
127 bool m_allRegions{false};
128
129 Aws::Vector<Aws::String> m_includedRegions;
130 bool m_scopeTypeHasBeenSet = false;
131 bool m_scopeValuesHasBeenSet = false;
132 bool m_allRegionsHasBeenSet = false;
133 bool m_includedRegionsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace ConfigService
138} // 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