AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GlobalAccelerator {
20namespace Model {
21
30class Resource {
31 public:
32 AWS_GLOBALACCELERATOR_API Resource() = default;
33 AWS_GLOBALACCELERATOR_API Resource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GLOBALACCELERATOR_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
45 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
46 template <typename EndpointIdT = Aws::String>
47 void SetEndpointId(EndpointIdT&& value) {
48 m_endpointIdHasBeenSet = true;
49 m_endpointId = std::forward<EndpointIdT>(value);
50 }
51 template <typename EndpointIdT = Aws::String>
52 Resource& WithEndpointId(EndpointIdT&& value) {
53 SetEndpointId(std::forward<EndpointIdT>(value));
54 return *this;
55 }
57
59
67 inline const Aws::String& GetCidr() const { return m_cidr; }
68 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
69 template <typename CidrT = Aws::String>
70 void SetCidr(CidrT&& value) {
71 m_cidrHasBeenSet = true;
72 m_cidr = std::forward<CidrT>(value);
73 }
74 template <typename CidrT = Aws::String>
75 Resource& WithCidr(CidrT&& value) {
76 SetCidr(std::forward<CidrT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetRegion() const { return m_region; }
87 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
88 template <typename RegionT = Aws::String>
89 void SetRegion(RegionT&& value) {
90 m_regionHasBeenSet = true;
91 m_region = std::forward<RegionT>(value);
92 }
93 template <typename RegionT = Aws::String>
94 Resource& WithRegion(RegionT&& value) {
95 SetRegion(std::forward<RegionT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_endpointId;
101
102 Aws::String m_cidr;
103
104 Aws::String m_region;
105 bool m_endpointIdHasBeenSet = false;
106 bool m_cidrHasBeenSet = false;
107 bool m_regionHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace GlobalAccelerator
112} // namespace Aws
const Aws::String & GetRegion() const
Definition Resource.h:86
const Aws::String & GetCidr() const
Definition Resource.h:67
void SetEndpointId(EndpointIdT &&value)
Definition Resource.h:47
Resource & WithRegion(RegionT &&value)
Definition Resource.h:94
AWS_GLOBALACCELERATOR_API Resource(Aws::Utils::Json::JsonView jsonValue)
Resource & WithEndpointId(EndpointIdT &&value)
Definition Resource.h:52
AWS_GLOBALACCELERATOR_API Resource()=default
const Aws::String & GetEndpointId() const
Definition Resource.h:44
Resource & WithCidr(CidrT &&value)
Definition Resource.h:75
void SetRegion(RegionT &&value)
Definition Resource.h:89
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLOBALACCELERATOR_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue