AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RegionScope.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/fms/FMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FMS {
21namespace Model {
22
30 public:
31 AWS_FMS_API RegionScope() = default;
35
37
41 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
42 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
43 template <typename RegionsT = Aws::Vector<Aws::String>>
44 void SetRegions(RegionsT&& value) {
45 m_regionsHasBeenSet = true;
46 m_regions = std::forward<RegionsT>(value);
47 }
48 template <typename RegionsT = Aws::Vector<Aws::String>>
49 RegionScope& WithRegions(RegionsT&& value) {
50 SetRegions(std::forward<RegionsT>(value));
51 return *this;
52 }
53 template <typename RegionsT = Aws::String>
54 RegionScope& AddRegions(RegionsT&& value) {
55 m_regionsHasBeenSet = true;
56 m_regions.emplace_back(std::forward<RegionsT>(value));
57 return *this;
58 }
60
62
66 inline bool GetAllRegionsEnabled() const { return m_allRegionsEnabled; }
67 inline bool AllRegionsEnabledHasBeenSet() const { return m_allRegionsEnabledHasBeenSet; }
68 inline void SetAllRegionsEnabled(bool value) {
69 m_allRegionsEnabledHasBeenSet = true;
70 m_allRegionsEnabled = value;
71 }
72 inline RegionScope& WithAllRegionsEnabled(bool value) {
74 return *this;
75 }
77 private:
79
80 bool m_allRegionsEnabled{false};
81 bool m_regionsHasBeenSet = false;
82 bool m_allRegionsEnabledHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace FMS
87} // namespace Aws
void SetRegions(RegionsT &&value)
Definition RegionScope.h:44
bool AllRegionsEnabledHasBeenSet() const
Definition RegionScope.h:67
RegionScope & AddRegions(RegionsT &&value)
Definition RegionScope.h:54
AWS_FMS_API RegionScope & operator=(Aws::Utils::Json::JsonView jsonValue)
RegionScope & WithRegions(RegionsT &&value)
Definition RegionScope.h:49
const Aws::Vector< Aws::String > & GetRegions() const
Definition RegionScope.h:41
AWS_FMS_API RegionScope()=default
bool GetAllRegionsEnabled() const
Definition RegionScope.h:66
void SetAllRegionsEnabled(bool value)
Definition RegionScope.h:68
AWS_FMS_API RegionScope(Aws::Utils::Json::JsonView jsonValue)
RegionScope & WithAllRegionsEnabled(bool value)
Definition RegionScope.h:72
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue