AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceLocation.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/RegionName.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LIGHTSAIL_API ResourceLocation() = default;
36 AWS_LIGHTSAIL_API ResourceLocation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
47 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
48 template<typename AvailabilityZoneT = Aws::String>
49 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
50 template<typename AvailabilityZoneT = Aws::String>
51 ResourceLocation& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
53
55
58 inline RegionName GetRegionName() const { return m_regionName; }
59 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
60 inline void SetRegionName(RegionName value) { m_regionNameHasBeenSet = true; m_regionName = value; }
61 inline ResourceLocation& WithRegionName(RegionName value) { SetRegionName(value); return *this;}
63 private:
64
65 Aws::String m_availabilityZone;
66 bool m_availabilityZoneHasBeenSet = false;
67
68 RegionName m_regionName{RegionName::NOT_SET};
69 bool m_regionNameHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Lightsail
74} // namespace Aws
ResourceLocation & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_LIGHTSAIL_API ResourceLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceLocation & WithRegionName(RegionName value)
const Aws::String & GetAvailabilityZone() const
AWS_LIGHTSAIL_API ResourceLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAvailabilityZone(AvailabilityZoneT &&value)
AWS_LIGHTSAIL_API ResourceLocation()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue