AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RegionScope.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FMS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_FMS_API RegionScope() = default;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
48 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
49 template<typename RegionsT = Aws::Vector<Aws::String>>
50 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
51 template<typename RegionsT = Aws::Vector<Aws::String>>
52 RegionScope& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
53 template<typename RegionsT = Aws::String>
54 RegionScope& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
56
58
62 inline bool GetAllRegionsEnabled() const { return m_allRegionsEnabled; }
63 inline bool AllRegionsEnabledHasBeenSet() const { return m_allRegionsEnabledHasBeenSet; }
64 inline void SetAllRegionsEnabled(bool value) { m_allRegionsEnabledHasBeenSet = true; m_allRegionsEnabled = value; }
65 inline RegionScope& WithAllRegionsEnabled(bool value) { SetAllRegionsEnabled(value); return *this;}
67 private:
68
70 bool m_regionsHasBeenSet = false;
71
72 bool m_allRegionsEnabled{false};
73 bool m_allRegionsEnabledHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace FMS
78} // namespace Aws
void SetRegions(RegionsT &&value)
Definition RegionScope.h:50
bool AllRegionsEnabledHasBeenSet() const
Definition RegionScope.h:63
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:52
const Aws::Vector< Aws::String > & GetRegions() const
Definition RegionScope.h:47
AWS_FMS_API RegionScope()=default
bool GetAllRegionsEnabled() const
Definition RegionScope.h:62
void SetAllRegionsEnabled(bool value)
Definition RegionScope.h:64
AWS_FMS_API RegionScope(Aws::Utils::Json::JsonView jsonValue)
RegionScope & WithAllRegionsEnabled(bool value)
Definition RegionScope.h:65
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue