AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GlobalAccelerator
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_GLOBALACCELERATOR_API Resource() = default;
38 AWS_GLOBALACCELERATOR_API Resource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GLOBALACCELERATOR_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
51 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
52 template<typename EndpointIdT = Aws::String>
53 void SetEndpointId(EndpointIdT&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::forward<EndpointIdT>(value); }
54 template<typename EndpointIdT = Aws::String>
55 Resource& WithEndpointId(EndpointIdT&& value) { SetEndpointId(std::forward<EndpointIdT>(value)); return *this;}
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) { m_cidrHasBeenSet = true; m_cidr = std::forward<CidrT>(value); }
71 template<typename CidrT = Aws::String>
72 Resource& WithCidr(CidrT&& value) { SetCidr(std::forward<CidrT>(value)); return *this;}
74
76
80 inline const Aws::String& GetRegion() const { return m_region; }
81 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
82 template<typename RegionT = Aws::String>
83 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
84 template<typename RegionT = Aws::String>
85 Resource& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
87 private:
88
89 Aws::String m_endpointId;
90 bool m_endpointIdHasBeenSet = false;
91
92 Aws::String m_cidr;
93 bool m_cidrHasBeenSet = false;
94
95 Aws::String m_region;
96 bool m_regionHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace GlobalAccelerator
101} // namespace Aws
const Aws::String & GetRegion() const
Definition Resource.h:80
const Aws::String & GetCidr() const
Definition Resource.h:67
void SetEndpointId(EndpointIdT &&value)
Definition Resource.h:53
Resource & WithRegion(RegionT &&value)
Definition Resource.h:85
AWS_GLOBALACCELERATOR_API Resource(Aws::Utils::Json::JsonView jsonValue)
Resource & WithEndpointId(EndpointIdT &&value)
Definition Resource.h:55
AWS_GLOBALACCELERATOR_API Resource()=default
const Aws::String & GetEndpointId() const
Definition Resource.h:50
Resource & WithCidr(CidrT &&value)
Definition Resource.h:72
void SetRegion(RegionT &&value)
Definition Resource.h:83
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