Interface CreateMicrovmAuthTokenRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateMicrovmAuthTokenRequest.Builder,,CreateMicrovmAuthTokenRequest> LambdaMicrovmsRequest.Builder,SdkBuilder<CreateMicrovmAuthTokenRequest.Builder,,CreateMicrovmAuthTokenRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateMicrovmAuthTokenRequest
@Mutable
@NotThreadSafe
public static interface CreateMicrovmAuthTokenRequest.Builder
extends LambdaMicrovmsRequest.Builder, SdkPojo, CopyableBuilder<CreateMicrovmAuthTokenRequest.Builder,CreateMicrovmAuthTokenRequest>
-
Method Summary
Modifier and TypeMethodDescriptionallowedPorts(Collection<PortSpecification> allowedPorts) The list of port specifications that the authentication token grants access to on the MicroVM.allowedPorts(Consumer<PortSpecification.Builder>... allowedPorts) The list of port specifications that the authentication token grants access to on the MicroVM.allowedPorts(PortSpecification... allowedPorts) The list of port specifications that the authentication token grants access to on the MicroVM.expirationInMinutes(Integer expirationInMinutes) The duration in minutes before the authentication token expires.microvmIdentifier(String microvmIdentifier) The ID of the MicroVM to create an authentication token for.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lambdamicrovms.model.LambdaMicrovmsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
microvmIdentifier
The ID of the MicroVM to create an authentication token for.
- Parameters:
microvmIdentifier- The ID of the MicroVM to create an authentication token for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expirationInMinutes
The duration in minutes before the authentication token expires. Maximum: 60 minutes.
- Parameters:
expirationInMinutes- The duration in minutes before the authentication token expires. Maximum: 60 minutes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedPorts
The list of port specifications that the authentication token grants access to on the MicroVM.
- Parameters:
allowedPorts- The list of port specifications that the authentication token grants access to on the MicroVM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedPorts
The list of port specifications that the authentication token grants access to on the MicroVM.
- Parameters:
allowedPorts- The list of port specifications that the authentication token grants access to on the MicroVM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedPorts
CreateMicrovmAuthTokenRequest.Builder allowedPorts(Consumer<PortSpecification.Builder>... allowedPorts) The list of port specifications that the authentication token grants access to on the MicroVM.
This is a convenience method that creates an instance of thePortSpecification.Builderavoiding the need to create one manually viaPortSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toallowedPorts(List<PortSpecification>).- Parameters:
allowedPorts- a consumer that will call methods onPortSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateMicrovmAuthTokenRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateMicrovmAuthTokenRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-