/** * 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 { /** *

Identifies a network interface for the Amazon EC2 instance.

See * Also:

AWS * API Reference

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

The identifier of the network interface. The details are in a corresponding * AwsEc2NetworkInterfacesDetails object.

*/ inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; } /** *

The identifier of the network interface. The details are in a corresponding * AwsEc2NetworkInterfacesDetails object.

*/ inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; } /** *

The identifier of the network interface. The details are in a corresponding * AwsEc2NetworkInterfacesDetails object.

*/ inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; } /** *

The identifier of the network interface. The details are in a corresponding * AwsEc2NetworkInterfacesDetails object.

*/ inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); } /** *

The identifier of the network interface. The details are in a corresponding * AwsEc2NetworkInterfacesDetails object.

*/ inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); } /** *

The identifier of the network interface. The details are in a corresponding * AwsEc2NetworkInterfacesDetails object.

*/ inline AwsEc2InstanceNetworkInterfacesDetails& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *

The identifier of the network interface. The details are in a corresponding * AwsEc2NetworkInterfacesDetails object.

*/ inline AwsEc2InstanceNetworkInterfacesDetails& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *

The identifier of the network interface. The details are in a corresponding * AwsEc2NetworkInterfacesDetails object.

*/ inline AwsEc2InstanceNetworkInterfacesDetails& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} private: Aws::String m_networkInterfaceId; bool m_networkInterfaceIdHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws