Class CfnNetworkInterfacePermissionProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkInterfacePermissionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInterfacePermissionProps>
- Enclosing interface:
CfnNetworkInterfacePermissionProps
@Stability(Stable)
public static final class CfnNetworkInterfacePermissionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInterfacePermissionProps>
A builder for
CfnNetworkInterfacePermissionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionawsAccountId
(String awsAccountId) Sets the value ofCfnNetworkInterfacePermissionProps.getAwsAccountId()
build()
Builds the configured instance.networkInterfaceId
(String networkInterfaceId) Sets the value ofCfnNetworkInterfacePermissionProps.getNetworkInterfaceId()
permission
(String permission) Sets the value ofCfnNetworkInterfacePermissionProps.getPermission()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsAccountId
@Stability(Stable) public CfnNetworkInterfacePermissionProps.Builder awsAccountId(String awsAccountId) Sets the value ofCfnNetworkInterfacePermissionProps.getAwsAccountId()
- Parameters:
awsAccountId
- The AWS account ID. This parameter is required.- Returns:
this
-
networkInterfaceId
@Stability(Stable) public CfnNetworkInterfacePermissionProps.Builder networkInterfaceId(String networkInterfaceId) Sets the value ofCfnNetworkInterfacePermissionProps.getNetworkInterfaceId()
- Parameters:
networkInterfaceId
- The ID of the network interface. This parameter is required.- Returns:
this
-
permission
Sets the value ofCfnNetworkInterfacePermissionProps.getPermission()
- Parameters:
permission
- The type of permission to grant:INSTANCE-ATTACH
orEIP-ASSOCIATE
. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNetworkInterfacePermissionProps>
- Returns:
- a new instance of
CfnNetworkInterfacePermissionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-