AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Region.h
1
6#pragma once
7#include <aws/account/Account_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/account/model/RegionOptStatus.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 Account
23{
24namespace Model
25{
26
33 class Region
34 {
35 public:
36 AWS_ACCOUNT_API Region();
37 AWS_ACCOUNT_API Region(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCOUNT_API Region& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRegionName() const{ return m_regionName; }
47 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
48 inline void SetRegionName(const Aws::String& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
49 inline void SetRegionName(Aws::String&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
50 inline void SetRegionName(const char* value) { m_regionNameHasBeenSet = true; m_regionName.assign(value); }
51 inline Region& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;}
52 inline Region& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;}
53 inline Region& WithRegionName(const char* value) { SetRegionName(value); return *this;}
55
57
61 inline const RegionOptStatus& GetRegionOptStatus() const{ return m_regionOptStatus; }
62 inline bool RegionOptStatusHasBeenSet() const { return m_regionOptStatusHasBeenSet; }
63 inline void SetRegionOptStatus(const RegionOptStatus& value) { m_regionOptStatusHasBeenSet = true; m_regionOptStatus = value; }
64 inline void SetRegionOptStatus(RegionOptStatus&& value) { m_regionOptStatusHasBeenSet = true; m_regionOptStatus = std::move(value); }
65 inline Region& WithRegionOptStatus(const RegionOptStatus& value) { SetRegionOptStatus(value); return *this;}
66 inline Region& WithRegionOptStatus(RegionOptStatus&& value) { SetRegionOptStatus(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_regionName;
71 bool m_regionNameHasBeenSet = false;
72
73 RegionOptStatus m_regionOptStatus;
74 bool m_regionOptStatusHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Account
79} // namespace Aws
AWS_ACCOUNT_API Region & operator=(Aws::Utils::Json::JsonView jsonValue)
const RegionOptStatus & GetRegionOptStatus() const
Definition Region.h:61
bool RegionOptStatusHasBeenSet() const
Definition Region.h:62
AWS_ACCOUNT_API Region(Aws::Utils::Json::JsonView jsonValue)
void SetRegionName(const char *value)
Definition Region.h:50
Region & WithRegionOptStatus(const RegionOptStatus &value)
Definition Region.h:65
AWS_ACCOUNT_API Region()
Region & WithRegionName(const Aws::String &value)
Definition Region.h:51
Region & WithRegionName(const char *value)
Definition Region.h:53
Region & WithRegionOptStatus(RegionOptStatus &&value)
Definition Region.h:66
bool RegionNameHasBeenSet() const
Definition Region.h:47
void SetRegionName(Aws::String &&value)
Definition Region.h:49
void SetRegionOptStatus(const RegionOptStatus &value)
Definition Region.h:63
void SetRegionOptStatus(RegionOptStatus &&value)
Definition Region.h:64
Region & WithRegionName(Aws::String &&value)
Definition Region.h:52
void SetRegionName(const Aws::String &value)
Definition Region.h:48
AWS_ACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRegionName() const
Definition Region.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue