/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Provides information about a private IPv4 address that is with the network * interface.

See Also:

AWS * API Reference

*/ class AwsEc2NetworkInterfacePrivateIpAddressDetail { public: AWS_SECURITYHUB_API AwsEc2NetworkInterfacePrivateIpAddressDetail(); AWS_SECURITYHUB_API AwsEc2NetworkInterfacePrivateIpAddressDetail(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEc2NetworkInterfacePrivateIpAddressDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The IP address.

*/ inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; } /** *

The IP address.

*/ inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; } /** *

The IP address.

*/ inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; } /** *

The IP address.

*/ inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); } /** *

The IP address.

*/ inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); } /** *

The IP address.

*/ inline AwsEc2NetworkInterfacePrivateIpAddressDetail& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *

The IP address.

*/ inline AwsEc2NetworkInterfacePrivateIpAddressDetail& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *

The IP address.

*/ inline AwsEc2NetworkInterfacePrivateIpAddressDetail& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} /** *

The private DNS name for the IP address.

*/ inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; } /** *

The private DNS name for the IP address.

*/ inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; } /** *

The private DNS name for the IP address.

*/ inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; } /** *

The private DNS name for the IP address.

*/ inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); } /** *

The private DNS name for the IP address.

*/ inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); } /** *

The private DNS name for the IP address.

*/ inline AwsEc2NetworkInterfacePrivateIpAddressDetail& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;} /** *

The private DNS name for the IP address.

*/ inline AwsEc2NetworkInterfacePrivateIpAddressDetail& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;} /** *

The private DNS name for the IP address.

*/ inline AwsEc2NetworkInterfacePrivateIpAddressDetail& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;} private: Aws::String m_privateIpAddress; bool m_privateIpAddressHasBeenSet = false; Aws::String m_privateDnsName; bool m_privateDnsNameHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws