1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18   class JsonValue;
19   class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
27   /**
28    * <p>Describes the resource location.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ResourceLocation">AWS
30    * API Reference</a></p>
31    */
32   class AWS_LIGHTSAIL_API ResourceLocation
33   {
34   public:
35     ResourceLocation();
36     ResourceLocation(Aws::Utils::Json::JsonView jsonValue);
37     ResourceLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The Availability Zone. Follows the format <code>us-east-2a</code>
43      * (case-sensitive).</p>
44      */
GetAvailabilityZone()45     inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
46 
47     /**
48      * <p>The Availability Zone. Follows the format <code>us-east-2a</code>
49      * (case-sensitive).</p>
50      */
AvailabilityZoneHasBeenSet()51     inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
52 
53     /**
54      * <p>The Availability Zone. Follows the format <code>us-east-2a</code>
55      * (case-sensitive).</p>
56      */
SetAvailabilityZone(const Aws::String & value)57     inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
58 
59     /**
60      * <p>The Availability Zone. Follows the format <code>us-east-2a</code>
61      * (case-sensitive).</p>
62      */
SetAvailabilityZone(Aws::String && value)63     inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
64 
65     /**
66      * <p>The Availability Zone. Follows the format <code>us-east-2a</code>
67      * (case-sensitive).</p>
68      */
SetAvailabilityZone(const char * value)69     inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
70 
71     /**
72      * <p>The Availability Zone. Follows the format <code>us-east-2a</code>
73      * (case-sensitive).</p>
74      */
WithAvailabilityZone(const Aws::String & value)75     inline ResourceLocation& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
76 
77     /**
78      * <p>The Availability Zone. Follows the format <code>us-east-2a</code>
79      * (case-sensitive).</p>
80      */
WithAvailabilityZone(Aws::String && value)81     inline ResourceLocation& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
82 
83     /**
84      * <p>The Availability Zone. Follows the format <code>us-east-2a</code>
85      * (case-sensitive).</p>
86      */
WithAvailabilityZone(const char * value)87     inline ResourceLocation& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
88 
89 
90     /**
91      * <p>The AWS Region name.</p>
92      */
GetRegionName()93     inline const RegionName& GetRegionName() const{ return m_regionName; }
94 
95     /**
96      * <p>The AWS Region name.</p>
97      */
RegionNameHasBeenSet()98     inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
99 
100     /**
101      * <p>The AWS Region name.</p>
102      */
SetRegionName(const RegionName & value)103     inline void SetRegionName(const RegionName& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
104 
105     /**
106      * <p>The AWS Region name.</p>
107      */
SetRegionName(RegionName && value)108     inline void SetRegionName(RegionName&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
109 
110     /**
111      * <p>The AWS Region name.</p>
112      */
WithRegionName(const RegionName & value)113     inline ResourceLocation& WithRegionName(const RegionName& value) { SetRegionName(value); return *this;}
114 
115     /**
116      * <p>The AWS Region name.</p>
117      */
WithRegionName(RegionName && value)118     inline ResourceLocation& WithRegionName(RegionName&& value) { SetRegionName(std::move(value)); return *this;}
119 
120   private:
121 
122     Aws::String m_availabilityZone;
123     bool m_availabilityZoneHasBeenSet;
124 
125     RegionName m_regionName;
126     bool m_regionNameHasBeenSet;
127   };
128 
129 } // namespace Model
130 } // namespace Lightsail
131 } // namespace Aws
132