AWS SDK for C++  1.9.108
AWS SDK for C++
AvailabilityZone.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
44  inline const Aws::String& GetZoneName() const{ return m_zoneName; }
45 
50  inline bool ZoneNameHasBeenSet() const { return m_zoneNameHasBeenSet; }
51 
56  inline void SetZoneName(const Aws::String& value) { m_zoneNameHasBeenSet = true; m_zoneName = value; }
57 
62  inline void SetZoneName(Aws::String&& value) { m_zoneNameHasBeenSet = true; m_zoneName = std::move(value); }
63 
68  inline void SetZoneName(const char* value) { m_zoneNameHasBeenSet = true; m_zoneName.assign(value); }
69 
74  inline AvailabilityZone& WithZoneName(const Aws::String& value) { SetZoneName(value); return *this;}
75 
80  inline AvailabilityZone& WithZoneName(Aws::String&& value) { SetZoneName(std::move(value)); return *this;}
81 
86  inline AvailabilityZone& WithZoneName(const char* value) { SetZoneName(value); return *this;}
87 
88 
92  inline const Aws::String& GetState() const{ return m_state; }
93 
97  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
98 
102  inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
103 
107  inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
108 
112  inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
113 
117  inline AvailabilityZone& WithState(const Aws::String& value) { SetState(value); return *this;}
118 
122  inline AvailabilityZone& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
123 
127  inline AvailabilityZone& WithState(const char* value) { SetState(value); return *this;}
128 
129  private:
130 
131  Aws::String m_zoneName;
132  bool m_zoneNameHasBeenSet;
133 
134  Aws::String m_state;
135  bool m_stateHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace Lightsail
140 } // namespace Aws
Aws::Lightsail::Model::AvailabilityZone::AvailabilityZone
AvailabilityZone(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::AvailabilityZone::SetZoneName
void SetZoneName(Aws::String &&value)
Definition: AvailabilityZone.h:62
Aws::Lightsail::Model::AvailabilityZone::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::AvailabilityZone::WithZoneName
AvailabilityZone & WithZoneName(const char *value)
Definition: AvailabilityZone.h:86
Aws::Lightsail::Model::AvailabilityZone::WithState
AvailabilityZone & WithState(Aws::String &&value)
Definition: AvailabilityZone.h:122
Aws::Lightsail::Model::AvailabilityZone::WithState
AvailabilityZone & WithState(const Aws::String &value)
Definition: AvailabilityZone.h:117
Aws::Lightsail::Model::AvailabilityZone::SetState
void SetState(const char *value)
Definition: AvailabilityZone.h:112
Aws::Lightsail::Model::AvailabilityZone::WithZoneName
AvailabilityZone & WithZoneName(const Aws::String &value)
Definition: AvailabilityZone.h:74
Aws::Lightsail::Model::AvailabilityZone::SetZoneName
void SetZoneName(const char *value)
Definition: AvailabilityZone.h:68
Aws::Lightsail::Model::AvailabilityZone::ZoneNameHasBeenSet
bool ZoneNameHasBeenSet() const
Definition: AvailabilityZone.h:50
Aws::Lightsail::Model::AvailabilityZone::AvailabilityZone
AvailabilityZone()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::AvailabilityZone::operator=
AvailabilityZone & operator=(Aws::Utils::Json::JsonView jsonValue)
Lightsail_EXPORTS.h
Aws::Lightsail::Model::AvailabilityZone::SetState
void SetState(const Aws::String &value)
Definition: AvailabilityZone.h:102
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::AvailabilityZone
Definition: AvailabilityZone.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::AvailabilityZone::StateHasBeenSet
bool StateHasBeenSet() const
Definition: AvailabilityZone.h:97
Aws::Lightsail::Model::AvailabilityZone::SetZoneName
void SetZoneName(const Aws::String &value)
Definition: AvailabilityZone.h:56
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::AvailabilityZone::GetState
const Aws::String & GetState() const
Definition: AvailabilityZone.h:92
Aws::Lightsail::Model::AvailabilityZone::WithZoneName
AvailabilityZone & WithZoneName(Aws::String &&value)
Definition: AvailabilityZone.h:80
Aws::Lightsail::Model::AvailabilityZone::WithState
AvailabilityZone & WithState(const char *value)
Definition: AvailabilityZone.h:127
Aws::Lightsail::Model::AvailabilityZone::SetState
void SetState(Aws::String &&value)
Definition: AvailabilityZone.h:107
Aws::Lightsail::Model::AvailabilityZone::GetZoneName
const Aws::String & GetZoneName() const
Definition: AvailabilityZone.h:44