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/dax/DAX_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
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 DAX
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Represents the subnet associated with a DAX cluster. This parameter refers to
28    * subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with
29    * DAX.</p><p><h3>See Also:</h3>   <a
30    * href="http://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/Subnet">AWS API
31    * Reference</a></p>
32    */
33   class AWS_DAX_API Subnet
34   {
35   public:
36     Subnet();
37     Subnet(Aws::Utils::Json::JsonView jsonValue);
38     Subnet& operator=(Aws::Utils::Json::JsonView jsonValue);
39     Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
42     /**
43      * <p>The system-assigned identifier for the subnet.</p>
44      */
GetSubnetIdentifier()45     inline const Aws::String& GetSubnetIdentifier() const{ return m_subnetIdentifier; }
46 
47     /**
48      * <p>The system-assigned identifier for the subnet.</p>
49      */
SubnetIdentifierHasBeenSet()50     inline bool SubnetIdentifierHasBeenSet() const { return m_subnetIdentifierHasBeenSet; }
51 
52     /**
53      * <p>The system-assigned identifier for the subnet.</p>
54      */
SetSubnetIdentifier(const Aws::String & value)55     inline void SetSubnetIdentifier(const Aws::String& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = value; }
56 
57     /**
58      * <p>The system-assigned identifier for the subnet.</p>
59      */
SetSubnetIdentifier(Aws::String && value)60     inline void SetSubnetIdentifier(Aws::String&& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = std::move(value); }
61 
62     /**
63      * <p>The system-assigned identifier for the subnet.</p>
64      */
SetSubnetIdentifier(const char * value)65     inline void SetSubnetIdentifier(const char* value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier.assign(value); }
66 
67     /**
68      * <p>The system-assigned identifier for the subnet.</p>
69      */
WithSubnetIdentifier(const Aws::String & value)70     inline Subnet& WithSubnetIdentifier(const Aws::String& value) { SetSubnetIdentifier(value); return *this;}
71 
72     /**
73      * <p>The system-assigned identifier for the subnet.</p>
74      */
WithSubnetIdentifier(Aws::String && value)75     inline Subnet& WithSubnetIdentifier(Aws::String&& value) { SetSubnetIdentifier(std::move(value)); return *this;}
76 
77     /**
78      * <p>The system-assigned identifier for the subnet.</p>
79      */
WithSubnetIdentifier(const char * value)80     inline Subnet& WithSubnetIdentifier(const char* value) { SetSubnetIdentifier(value); return *this;}
81 
82 
83     /**
84      * <p>The Availability Zone (AZ) for the subnet.</p>
85      */
GetSubnetAvailabilityZone()86     inline const Aws::String& GetSubnetAvailabilityZone() const{ return m_subnetAvailabilityZone; }
87 
88     /**
89      * <p>The Availability Zone (AZ) for the subnet.</p>
90      */
SubnetAvailabilityZoneHasBeenSet()91     inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
92 
93     /**
94      * <p>The Availability Zone (AZ) for the subnet.</p>
95      */
SetSubnetAvailabilityZone(const Aws::String & value)96     inline void SetSubnetAvailabilityZone(const Aws::String& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
97 
98     /**
99      * <p>The Availability Zone (AZ) for the subnet.</p>
100      */
SetSubnetAvailabilityZone(Aws::String && value)101     inline void SetSubnetAvailabilityZone(Aws::String&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = std::move(value); }
102 
103     /**
104      * <p>The Availability Zone (AZ) for the subnet.</p>
105      */
SetSubnetAvailabilityZone(const char * value)106     inline void SetSubnetAvailabilityZone(const char* value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone.assign(value); }
107 
108     /**
109      * <p>The Availability Zone (AZ) for the subnet.</p>
110      */
WithSubnetAvailabilityZone(const Aws::String & value)111     inline Subnet& WithSubnetAvailabilityZone(const Aws::String& value) { SetSubnetAvailabilityZone(value); return *this;}
112 
113     /**
114      * <p>The Availability Zone (AZ) for the subnet.</p>
115      */
WithSubnetAvailabilityZone(Aws::String && value)116     inline Subnet& WithSubnetAvailabilityZone(Aws::String&& value) { SetSubnetAvailabilityZone(std::move(value)); return *this;}
117 
118     /**
119      * <p>The Availability Zone (AZ) for the subnet.</p>
120      */
WithSubnetAvailabilityZone(const char * value)121     inline Subnet& WithSubnetAvailabilityZone(const char* value) { SetSubnetAvailabilityZone(value); return *this;}
122 
123   private:
124 
125     Aws::String m_subnetIdentifier;
126     bool m_subnetIdentifierHasBeenSet;
127 
128     Aws::String m_subnetAvailabilityZone;
129     bool m_subnetAvailabilityZoneHasBeenSet;
130   };
131 
132 } // namespace Model
133 } // namespace DAX
134 } // namespace Aws
135