AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Region.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DataZone {
20namespace Model {
21
27class Region {
28 public:
29 AWS_DATAZONE_API Region() = default;
30 AWS_DATAZONE_API Region(Aws::Utils::Json::JsonView jsonValue);
31 AWS_DATAZONE_API Region& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetRegionName() const { return m_regionName; }
39 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
40 template <typename RegionNameT = Aws::String>
41 void SetRegionName(RegionNameT&& value) {
42 m_regionNameHasBeenSet = true;
43 m_regionName = std::forward<RegionNameT>(value);
44 }
45 template <typename RegionNameT = Aws::String>
46 Region& WithRegionName(RegionNameT&& value) {
47 SetRegionName(std::forward<RegionNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRegionNamePath() const { return m_regionNamePath; }
57 inline bool RegionNamePathHasBeenSet() const { return m_regionNamePathHasBeenSet; }
58 template <typename RegionNamePathT = Aws::String>
59 void SetRegionNamePath(RegionNamePathT&& value) {
60 m_regionNamePathHasBeenSet = true;
61 m_regionNamePath = std::forward<RegionNamePathT>(value);
62 }
63 template <typename RegionNamePathT = Aws::String>
64 Region& WithRegionNamePath(RegionNamePathT&& value) {
65 SetRegionNamePath(std::forward<RegionNamePathT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_regionName;
71
72 Aws::String m_regionNamePath;
73 bool m_regionNameHasBeenSet = false;
74 bool m_regionNamePathHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace DataZone
79} // namespace Aws
const Aws::String & GetRegionName() const
Definition Region.h:38
void SetRegionNamePath(RegionNamePathT &&value)
Definition Region.h:59
void SetRegionName(RegionNameT &&value)
Definition Region.h:41
bool RegionNamePathHasBeenSet() const
Definition Region.h:57
const Aws::String & GetRegionNamePath() const
Definition Region.h:56
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
Region & WithRegionName(RegionNameT &&value)
Definition Region.h:46
AWS_DATAZONE_API Region(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Region()=default
bool RegionNameHasBeenSet() const
Definition Region.h:39
AWS_DATAZONE_API Region & operator=(Aws::Utils::Json::JsonView jsonValue)
Region & WithRegionNamePath(RegionNamePathT &&value)
Definition Region.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue