AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
AWSLocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkManager {
20namespace Model {
21
28 public:
29 AWS_NETWORKMANAGER_API AWSLocation() = default;
30 AWS_NETWORKMANAGER_API AWSLocation(Aws::Utils::Json::JsonView jsonValue);
31 AWS_NETWORKMANAGER_API AWSLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetZone() const { return m_zone; }
40 inline bool ZoneHasBeenSet() const { return m_zoneHasBeenSet; }
41 template <typename ZoneT = Aws::String>
42 void SetZone(ZoneT&& value) {
43 m_zoneHasBeenSet = true;
44 m_zone = std::forward<ZoneT>(value);
45 }
46 template <typename ZoneT = Aws::String>
47 AWSLocation& WithZone(ZoneT&& value) {
48 SetZone(std::forward<ZoneT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetSubnetArn() const { return m_subnetArn; }
59 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
60 template <typename SubnetArnT = Aws::String>
61 void SetSubnetArn(SubnetArnT&& value) {
62 m_subnetArnHasBeenSet = true;
63 m_subnetArn = std::forward<SubnetArnT>(value);
64 }
65 template <typename SubnetArnT = Aws::String>
66 AWSLocation& WithSubnetArn(SubnetArnT&& value) {
67 SetSubnetArn(std::forward<SubnetArnT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_zone;
73
74 Aws::String m_subnetArn;
75 bool m_zoneHasBeenSet = false;
76 bool m_subnetArnHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace NetworkManager
81} // namespace Aws
AWS_NETWORKMANAGER_API AWSLocation()=default
void SetSubnetArn(SubnetArnT &&value)
Definition AWSLocation.h:61
const Aws::String & GetZone() const
Definition AWSLocation.h:39
AWSLocation & WithSubnetArn(SubnetArnT &&value)
Definition AWSLocation.h:66
AWS_NETWORKMANAGER_API AWSLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSLocation & WithZone(ZoneT &&value)
Definition AWSLocation.h:47
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API AWSLocation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSubnetArn() const
Definition AWSLocation.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue