AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AvailabilityZone.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API AvailabilityZone() = default;
30 AWS_SECURITYHUB_API AvailabilityZone(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYHUB_API AvailabilityZone& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetZoneName() const { return m_zoneName; }
39 inline bool ZoneNameHasBeenSet() const { return m_zoneNameHasBeenSet; }
40 template <typename ZoneNameT = Aws::String>
41 void SetZoneName(ZoneNameT&& value) {
42 m_zoneNameHasBeenSet = true;
43 m_zoneName = std::forward<ZoneNameT>(value);
44 }
45 template <typename ZoneNameT = Aws::String>
46 AvailabilityZone& WithZoneName(ZoneNameT&& value) {
47 SetZoneName(std::forward<ZoneNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
57 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
58 template <typename SubnetIdT = Aws::String>
59 void SetSubnetId(SubnetIdT&& value) {
60 m_subnetIdHasBeenSet = true;
61 m_subnetId = std::forward<SubnetIdT>(value);
62 }
63 template <typename SubnetIdT = Aws::String>
64 AvailabilityZone& WithSubnetId(SubnetIdT&& value) {
65 SetSubnetId(std::forward<SubnetIdT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_zoneName;
71
72 Aws::String m_subnetId;
73 bool m_zoneNameHasBeenSet = false;
74 bool m_subnetIdHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SecurityHub
79} // namespace Aws
AvailabilityZone & WithSubnetId(SubnetIdT &&value)
AWS_SECURITYHUB_API AvailabilityZone()=default
AWS_SECURITYHUB_API AvailabilityZone(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AvailabilityZone & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetZoneName() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AvailabilityZone & WithZoneName(ZoneNameT &&value)
const Aws::String & GetSubnetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue