/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a permission for a network interface.See Also:
AWS
* API Reference
The ID of the network interface permission.
*/ inline const Aws::String& GetNetworkInterfacePermissionId() const{ return m_networkInterfacePermissionId; } /** *The ID of the network interface permission.
*/ inline bool NetworkInterfacePermissionIdHasBeenSet() const { return m_networkInterfacePermissionIdHasBeenSet; } /** *The ID of the network interface permission.
*/ inline void SetNetworkInterfacePermissionId(const Aws::String& value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId = value; } /** *The ID of the network interface permission.
*/ inline void SetNetworkInterfacePermissionId(Aws::String&& value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId = std::move(value); } /** *The ID of the network interface permission.
*/ inline void SetNetworkInterfacePermissionId(const char* value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId.assign(value); } /** *The ID of the network interface permission.
*/ inline NetworkInterfacePermission& WithNetworkInterfacePermissionId(const Aws::String& value) { SetNetworkInterfacePermissionId(value); return *this;} /** *The ID of the network interface permission.
*/ inline NetworkInterfacePermission& WithNetworkInterfacePermissionId(Aws::String&& value) { SetNetworkInterfacePermissionId(std::move(value)); return *this;} /** *The ID of the network interface permission.
*/ inline NetworkInterfacePermission& WithNetworkInterfacePermissionId(const char* value) { SetNetworkInterfacePermissionId(value); return *this;} /** *The ID of the network interface.
*/ inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; } /** *The ID of the network interface.
*/ inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; } /** *The ID of the network interface.
*/ inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; } /** *The ID of the network interface.
*/ inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); } /** *The ID of the network interface.
*/ inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); } /** *The ID of the network interface.
*/ inline NetworkInterfacePermission& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *The ID of the network interface.
*/ inline NetworkInterfacePermission& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *The ID of the network interface.
*/ inline NetworkInterfacePermission& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} /** *The Amazon Web Services account ID.
*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *The Amazon Web Services account ID.
*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *The Amazon Web Services account ID.
*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *The Amazon Web Services account ID.
*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *The Amazon Web Services account ID.
*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *The Amazon Web Services account ID.
*/ inline NetworkInterfacePermission& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *The Amazon Web Services account ID.
*/ inline NetworkInterfacePermission& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *The Amazon Web Services account ID.
*/ inline NetworkInterfacePermission& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} /** *The Amazon Web Service.
*/ inline const Aws::String& GetAwsService() const{ return m_awsService; } /** *The Amazon Web Service.
*/ inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; } /** *The Amazon Web Service.
*/ inline void SetAwsService(const Aws::String& value) { m_awsServiceHasBeenSet = true; m_awsService = value; } /** *The Amazon Web Service.
*/ inline void SetAwsService(Aws::String&& value) { m_awsServiceHasBeenSet = true; m_awsService = std::move(value); } /** *The Amazon Web Service.
*/ inline void SetAwsService(const char* value) { m_awsServiceHasBeenSet = true; m_awsService.assign(value); } /** *The Amazon Web Service.
*/ inline NetworkInterfacePermission& WithAwsService(const Aws::String& value) { SetAwsService(value); return *this;} /** *The Amazon Web Service.
*/ inline NetworkInterfacePermission& WithAwsService(Aws::String&& value) { SetAwsService(std::move(value)); return *this;} /** *The Amazon Web Service.
*/ inline NetworkInterfacePermission& WithAwsService(const char* value) { SetAwsService(value); return *this;} /** *The type of permission.
*/ inline const InterfacePermissionType& GetPermission() const{ return m_permission; } /** *The type of permission.
*/ inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; } /** *The type of permission.
*/ inline void SetPermission(const InterfacePermissionType& value) { m_permissionHasBeenSet = true; m_permission = value; } /** *The type of permission.
*/ inline void SetPermission(InterfacePermissionType&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); } /** *The type of permission.
*/ inline NetworkInterfacePermission& WithPermission(const InterfacePermissionType& value) { SetPermission(value); return *this;} /** *The type of permission.
*/ inline NetworkInterfacePermission& WithPermission(InterfacePermissionType&& value) { SetPermission(std::move(value)); return *this;} /** *Information about the state of the permission.
*/ inline const NetworkInterfacePermissionState& GetPermissionState() const{ return m_permissionState; } /** *Information about the state of the permission.
*/ inline bool PermissionStateHasBeenSet() const { return m_permissionStateHasBeenSet; } /** *Information about the state of the permission.
*/ inline void SetPermissionState(const NetworkInterfacePermissionState& value) { m_permissionStateHasBeenSet = true; m_permissionState = value; } /** *Information about the state of the permission.
*/ inline void SetPermissionState(NetworkInterfacePermissionState&& value) { m_permissionStateHasBeenSet = true; m_permissionState = std::move(value); } /** *Information about the state of the permission.
*/ inline NetworkInterfacePermission& WithPermissionState(const NetworkInterfacePermissionState& value) { SetPermissionState(value); return *this;} /** *Information about the state of the permission.
*/ inline NetworkInterfacePermission& WithPermissionState(NetworkInterfacePermissionState&& value) { SetPermissionState(std::move(value)); return *this;} private: Aws::String m_networkInterfacePermissionId; bool m_networkInterfacePermissionIdHasBeenSet = false; Aws::String m_networkInterfaceId; bool m_networkInterfaceIdHasBeenSet = false; Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_awsService; bool m_awsServiceHasBeenSet = false; InterfacePermissionType m_permission; bool m_permissionHasBeenSet = false; NetworkInterfacePermissionState m_permissionState; bool m_permissionStateHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws