AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
47 inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
48 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
49 inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
50 inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
51 inline RegionScope& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
52 inline RegionScope& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
53 inline RegionScope& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
54 inline RegionScope& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
55 inline RegionScope& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
57
59
63 inline bool GetAllRegionsEnabled() const{ return m_allRegionsEnabled; }
64 inline bool AllRegionsEnabledHasBeenSet() const { return m_allRegionsEnabledHasBeenSet; }
65 inline void SetAllRegionsEnabled(bool value) { m_allRegionsEnabledHasBeenSet = true; m_allRegionsEnabled = value; }
66 inline RegionScope& WithAllRegionsEnabled(bool value) { SetAllRegionsEnabled(value); return *this;}
68 private:
69
71 bool m_regionsHasBeenSet = false;
72
73 bool m_allRegionsEnabled;
74 bool m_allRegionsEnabledHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace FMS
79} // namespace Aws
void SetRegions(const Aws::Vector< Aws::String > &value)
Definition RegionScope.h:49
RegionScope & WithRegions(const Aws::Vector< Aws::String > &value)
Definition RegionScope.h:51
RegionScope & AddRegions(const char *value)
Definition RegionScope.h:55
bool AllRegionsEnabledHasBeenSet() const
Definition RegionScope.h:64
void SetRegions(Aws::Vector< Aws::String > &&value)
Definition RegionScope.h:50
AWS_FMS_API RegionScope & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetRegions() const
Definition RegionScope.h:47
RegionScope & AddRegions(Aws::String &&value)
Definition RegionScope.h:54
RegionScope & AddRegions(const Aws::String &value)
Definition RegionScope.h:53
bool GetAllRegionsEnabled() const
Definition RegionScope.h:63
RegionScope & WithRegions(Aws::Vector< Aws::String > &&value)
Definition RegionScope.h:52
void SetAllRegionsEnabled(bool value)
Definition RegionScope.h:65
AWS_FMS_API RegionScope(Aws::Utils::Json::JsonView jsonValue)
RegionScope & WithAllRegionsEnabled(bool value)
Definition RegionScope.h:66
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() 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