Interface GetInstancePortStatesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetInstancePortStatesResponse.Builder,,GetInstancePortStatesResponse> LightsailResponse.Builder,SdkBuilder<GetInstancePortStatesResponse.Builder,,GetInstancePortStatesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetInstancePortStatesResponse
@Mutable
@NotThreadSafe
public static interface GetInstancePortStatesResponse.Builder
extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetInstancePortStatesResponse.Builder,GetInstancePortStatesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionportStates(Collection<InstancePortState> portStates) An array of objects that describe the firewall port states for the specified instance.portStates(Consumer<InstancePortState.Builder>... portStates) An array of objects that describe the firewall port states for the specified instance.portStates(InstancePortState... portStates) An array of objects that describe the firewall port states for the specified instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
portStates
An array of objects that describe the firewall port states for the specified instance.
- Parameters:
portStates- An array of objects that describe the firewall port states for the specified instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portStates
An array of objects that describe the firewall port states for the specified instance.
- Parameters:
portStates- An array of objects that describe the firewall port states for the specified instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portStates
An array of objects that describe the firewall port states for the specified instance.
This is a convenience method that creates an instance of theInstancePortState.Builderavoiding the need to create one manually viaInstancePortState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toportStates(List<InstancePortState>).- Parameters:
portStates- a consumer that will call methods onInstancePortState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-