AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
RegionConfiguration.h
1
6#pragma once
7#include <aws/controlcatalog/ControlCatalog_EXPORTS.h>
8#include <aws/controlcatalog/model/ControlScope.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ControlCatalog {
22namespace Model {
23
44 public:
45 AWS_CONTROLCATALOG_API RegionConfiguration() = default;
46 AWS_CONTROLCATALOG_API RegionConfiguration(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CONTROLCATALOG_API RegionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_CONTROLCATALOG_API Aws::Utils::Json::JsonValue Jsonize() const;
49
51
62 inline ControlScope GetScope() const { return m_scope; }
63 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
64 inline void SetScope(ControlScope value) {
65 m_scopeHasBeenSet = true;
66 m_scope = value;
67 }
69 SetScope(value);
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Aws::String>& GetDeployableRegions() const { return m_deployableRegions; }
79 inline bool DeployableRegionsHasBeenSet() const { return m_deployableRegionsHasBeenSet; }
80 template <typename DeployableRegionsT = Aws::Vector<Aws::String>>
81 void SetDeployableRegions(DeployableRegionsT&& value) {
82 m_deployableRegionsHasBeenSet = true;
83 m_deployableRegions = std::forward<DeployableRegionsT>(value);
84 }
85 template <typename DeployableRegionsT = Aws::Vector<Aws::String>>
86 RegionConfiguration& WithDeployableRegions(DeployableRegionsT&& value) {
87 SetDeployableRegions(std::forward<DeployableRegionsT>(value));
88 return *this;
89 }
90 template <typename DeployableRegionsT = Aws::String>
91 RegionConfiguration& AddDeployableRegions(DeployableRegionsT&& value) {
92 m_deployableRegionsHasBeenSet = true;
93 m_deployableRegions.emplace_back(std::forward<DeployableRegionsT>(value));
94 return *this;
95 }
97 private:
99
100 Aws::Vector<Aws::String> m_deployableRegions;
101 bool m_scopeHasBeenSet = false;
102 bool m_deployableRegionsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ControlCatalog
107} // namespace Aws
RegionConfiguration & AddDeployableRegions(DeployableRegionsT &&value)
const Aws::Vector< Aws::String > & GetDeployableRegions() const
AWS_CONTROLCATALOG_API RegionConfiguration(Aws::Utils::Json::JsonView jsonValue)
RegionConfiguration & WithDeployableRegions(DeployableRegionsT &&value)
AWS_CONTROLCATALOG_API RegionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeployableRegions(DeployableRegionsT &&value)
AWS_CONTROLCATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
RegionConfiguration & WithScope(ControlScope value)
AWS_CONTROLCATALOG_API RegionConfiguration()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue