Interface GetInstancePortStatesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetInstancePortStatesResponse.Builder,
,GetInstancePortStatesResponse> LightsailResponse.Builder
,SdkBuilder<GetInstancePortStatesResponse.Builder,
,GetInstancePortStatesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetInstancePortStatesResponse
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
copy
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.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
-
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.Builder
avoiding the need to create one manually viaInstancePortState.builder()
.When the
Consumer
completes,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:
-