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/ec2/EC2_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18   class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Describes the private IP addresses assigned to a network
28    * interface.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignedPrivateIpAddress">AWS
30    * API Reference</a></p>
31    */
32   class AWS_EC2_API AssignedPrivateIpAddress
33   {
34   public:
35     AssignedPrivateIpAddress();
36     AssignedPrivateIpAddress(const Aws::Utils::Xml::XmlNode& xmlNode);
37     AssignedPrivateIpAddress& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38 
39     void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40     void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
43     /**
44      * <p>The private IP address assigned to the network interface.</p>
45      */
GetPrivateIpAddress()46     inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
47 
48     /**
49      * <p>The private IP address assigned to the network interface.</p>
50      */
PrivateIpAddressHasBeenSet()51     inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
52 
53     /**
54      * <p>The private IP address assigned to the network interface.</p>
55      */
SetPrivateIpAddress(const Aws::String & value)56     inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
57 
58     /**
59      * <p>The private IP address assigned to the network interface.</p>
60      */
SetPrivateIpAddress(Aws::String && value)61     inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
62 
63     /**
64      * <p>The private IP address assigned to the network interface.</p>
65      */
SetPrivateIpAddress(const char * value)66     inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
67 
68     /**
69      * <p>The private IP address assigned to the network interface.</p>
70      */
WithPrivateIpAddress(const Aws::String & value)71     inline AssignedPrivateIpAddress& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
72 
73     /**
74      * <p>The private IP address assigned to the network interface.</p>
75      */
WithPrivateIpAddress(Aws::String && value)76     inline AssignedPrivateIpAddress& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
77 
78     /**
79      * <p>The private IP address assigned to the network interface.</p>
80      */
WithPrivateIpAddress(const char * value)81     inline AssignedPrivateIpAddress& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
82 
83   private:
84 
85     Aws::String m_privateIpAddress;
86     bool m_privateIpAddressHasBeenSet;
87   };
88 
89 } // namespace Model
90 } // namespace EC2
91 } // namespace Aws
92