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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetInstancePortStatesResponse.BuilderportStates(Collection<InstancePortState> portStates)An array of objects that describe the firewall port states for the specified instance.GetInstancePortStatesResponse.BuilderportStates(Consumer<InstancePortState.Builder>... portStates)An array of objects that describe the firewall port states for the specified instance.GetInstancePortStatesResponse.BuilderportStates(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 Detail
-
portStates
GetInstancePortStatesResponse.Builder portStates(Collection<InstancePortState> 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
GetInstancePortStatesResponse.Builder portStates(InstancePortState... 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
GetInstancePortStatesResponse.Builder portStates(Consumer<InstancePortState.Builder>... 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 to#portStates(List.) - 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:
#portStates(java.util.Collection)
-
-