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/inspector/Inspector_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 Inspector 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Contains information about a private IP address associated with a network 28 * interface. This data type is used as a response element in the 29 * <a>DescribeFindings</a> action.</p><p><h3>See Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/PrivateIp">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_INSPECTOR_API PrivateIp 34 { 35 public: 36 PrivateIp(); 37 PrivateIp(Aws::Utils::Json::JsonView jsonValue); 38 PrivateIp& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 /** 43 * <p>The DNS name of the private IP address.</p> 44 */ GetPrivateDnsName()45 inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; } 46 47 /** 48 * <p>The DNS name of the private IP address.</p> 49 */ PrivateDnsNameHasBeenSet()50 inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; } 51 52 /** 53 * <p>The DNS name of the private IP address.</p> 54 */ SetPrivateDnsName(const Aws::String & value)55 inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; } 56 57 /** 58 * <p>The DNS name of the private IP address.</p> 59 */ SetPrivateDnsName(Aws::String && value)60 inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); } 61 62 /** 63 * <p>The DNS name of the private IP address.</p> 64 */ SetPrivateDnsName(const char * value)65 inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); } 66 67 /** 68 * <p>The DNS name of the private IP address.</p> 69 */ WithPrivateDnsName(const Aws::String & value)70 inline PrivateIp& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;} 71 72 /** 73 * <p>The DNS name of the private IP address.</p> 74 */ WithPrivateDnsName(Aws::String && value)75 inline PrivateIp& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;} 76 77 /** 78 * <p>The DNS name of the private IP address.</p> 79 */ WithPrivateDnsName(const char * value)80 inline PrivateIp& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;} 81 82 83 /** 84 * <p>The full IP address of the network inteface.</p> 85 */ GetPrivateIpAddress()86 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; } 87 88 /** 89 * <p>The full IP address of the network inteface.</p> 90 */ PrivateIpAddressHasBeenSet()91 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; } 92 93 /** 94 * <p>The full IP address of the network inteface.</p> 95 */ SetPrivateIpAddress(const Aws::String & value)96 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; } 97 98 /** 99 * <p>The full IP address of the network inteface.</p> 100 */ SetPrivateIpAddress(Aws::String && value)101 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); } 102 103 /** 104 * <p>The full IP address of the network inteface.</p> 105 */ SetPrivateIpAddress(const char * value)106 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); } 107 108 /** 109 * <p>The full IP address of the network inteface.</p> 110 */ WithPrivateIpAddress(const Aws::String & value)111 inline PrivateIp& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} 112 113 /** 114 * <p>The full IP address of the network inteface.</p> 115 */ WithPrivateIpAddress(Aws::String && value)116 inline PrivateIp& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} 117 118 /** 119 * <p>The full IP address of the network inteface.</p> 120 */ WithPrivateIpAddress(const char * value)121 inline PrivateIp& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} 122 123 private: 124 125 Aws::String m_privateDnsName; 126 bool m_privateDnsNameHasBeenSet; 127 128 Aws::String m_privateIpAddress; 129 bool m_privateIpAddressHasBeenSet; 130 }; 131 132 } // namespace Model 133 } // namespace Inspector 134 } // namespace Aws 135