AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
Region.h
1
6#pragma once
7#include <aws/account/Account_EXPORTS.h>
8#include <aws/account/model/RegionOptStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Account {
21namespace Model {
22
29class Region {
30 public:
31 AWS_ACCOUNT_API Region() = default;
32 AWS_ACCOUNT_API Region(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ACCOUNT_API Region& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRegionName() const { return m_regionName; }
41 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
42 template <typename RegionNameT = Aws::String>
43 void SetRegionName(RegionNameT&& value) {
44 m_regionNameHasBeenSet = true;
45 m_regionName = std::forward<RegionNameT>(value);
46 }
47 template <typename RegionNameT = Aws::String>
48 Region& WithRegionName(RegionNameT&& value) {
49 SetRegionName(std::forward<RegionNameT>(value));
50 return *this;
51 }
53
55
59 inline RegionOptStatus GetRegionOptStatus() const { return m_regionOptStatus; }
60 inline bool RegionOptStatusHasBeenSet() const { return m_regionOptStatusHasBeenSet; }
62 m_regionOptStatusHasBeenSet = true;
63 m_regionOptStatus = value;
64 }
66 SetRegionOptStatus(value);
67 return *this;
68 }
70 private:
71 Aws::String m_regionName;
72 bool m_regionNameHasBeenSet = false;
73
75 bool m_regionOptStatusHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Account
80} // namespace Aws
Region & WithRegionName(RegionNameT &&value)
Definition Region.h:48
AWS_ACCOUNT_API Region & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RegionOptStatusHasBeenSet() const
Definition Region.h:60
AWS_ACCOUNT_API Region(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCOUNT_API Region()=default
Region & WithRegionOptStatus(RegionOptStatus value)
Definition Region.h:65
RegionOptStatus GetRegionOptStatus() const
Definition Region.h:59
bool RegionNameHasBeenSet() const
Definition Region.h:41
void SetRegionOptStatus(RegionOptStatus value)
Definition Region.h:61
void SetRegionName(RegionNameT &&value)
Definition Region.h:43
AWS_ACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRegionName() const
Definition Region.h:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue