Interface CreateNetworkInterfacePermissionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateNetworkInterfacePermissionResponse.Builder,
,CreateNetworkInterfacePermissionResponse> Ec2Response.Builder
,SdkBuilder<CreateNetworkInterfacePermissionResponse.Builder,
,CreateNetworkInterfacePermissionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateNetworkInterfacePermissionResponse
public static interface CreateNetworkInterfacePermissionResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateNetworkInterfacePermissionResponse.Builder,CreateNetworkInterfacePermissionResponse>
-
Method Summary
Modifier and TypeMethodDescriptioninterfacePermission
(Consumer<NetworkInterfacePermission.Builder> interfacePermission) Information about the permission for the network interface.interfacePermission
(NetworkInterfacePermission interfacePermission) Information about the permission for the network interface.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
interfacePermission
CreateNetworkInterfacePermissionResponse.Builder interfacePermission(NetworkInterfacePermission interfacePermission) Information about the permission for the network interface.
- Parameters:
interfacePermission
- Information about the permission for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interfacePermission
default CreateNetworkInterfacePermissionResponse.Builder interfacePermission(Consumer<NetworkInterfacePermission.Builder> interfacePermission) Information about the permission for the network interface.
This is a convenience method that creates an instance of theNetworkInterfacePermission.Builder
avoiding the need to create one manually viaNetworkInterfacePermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tointerfacePermission(NetworkInterfacePermission)
.- Parameters:
interfacePermission
- a consumer that will call methods onNetworkInterfacePermission.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-