AWS SDK for C++

AWS SDK for C++ Version 1.11.912

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/crt/cbor/Cbor.h>
10#include <aws/fms/FMS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace FMS {
21namespace Model {
22
30 public:
31 AWS_FMS_API RegionScope() = default;
32 AWS_FMS_API RegionScope(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_FMS_API RegionScope& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_FMS_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
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
RegionScope & WithRegions(RegionsT &&value)
Definition RegionScope.h:49
const Aws::Vector< Aws::String > & GetRegions() const
Definition RegionScope.h:41
AWS_FMS_API RegionScope()=default
AWS_FMS_API RegionScope & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_FMS_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool GetAllRegionsEnabled() const
Definition RegionScope.h:66
void SetAllRegionsEnabled(bool value)
Definition RegionScope.h:68
RegionScope & WithAllRegionsEnabled(bool value)
Definition RegionScope.h:72
AWS_FMS_API RegionScope(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::vector< T, Aws::Allocator< T > > Vector