AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
Region.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces-instances/WorkspacesInstances_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace WorkspacesInstances {
20namespace Model {
21
28class Region {
29 public:
30 AWS_WORKSPACESINSTANCES_API Region() = default;
31 AWS_WORKSPACESINSTANCES_API Region(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACESINSTANCES_API Region& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetRegionName() const { return m_regionName; }
40 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
41 template <typename RegionNameT = Aws::String>
42 void SetRegionName(RegionNameT&& value) {
43 m_regionNameHasBeenSet = true;
44 m_regionName = std::forward<RegionNameT>(value);
45 }
46 template <typename RegionNameT = Aws::String>
47 Region& WithRegionName(RegionNameT&& value) {
48 SetRegionName(std::forward<RegionNameT>(value));
49 return *this;
50 }
52 private:
53 Aws::String m_regionName;
54 bool m_regionNameHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace WorkspacesInstances
59} // namespace Aws
const Aws::String & GetRegionName() const
Definition Region.h:39
AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetRegionName(RegionNameT &&value)
Definition Region.h:42
Region & WithRegionName(RegionNameT &&value)
Definition Region.h:47
AWS_WORKSPACESINSTANCES_API Region & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACESINSTANCES_API Region()=default
AWS_WORKSPACESINSTANCES_API Region(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String