public static interface GetInstancePortStatesResponse.Builder extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetInstancePortStatesResponse.Builder,GetInstancePortStatesResponse>
| Modifier and Type | Method and Description |
|---|---|
GetInstancePortStatesResponse.Builder |
portStates(Collection<InstancePortState> portStates)
An array of objects that describe the firewall port states for the specified instance.
|
GetInstancePortStatesResponse.Builder |
portStates(Consumer<InstancePortState.Builder>... portStates)
An array of objects that describe the firewall port states for the specified instance.
|
GetInstancePortStatesResponse.Builder |
portStates(InstancePortState... portStates)
An array of objects that describe the firewall port states for the specified instance.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetInstancePortStatesResponse.Builder portStates(Collection<InstancePortState> portStates)
An array of objects that describe the firewall port states for the specified instance.
portStates - An array of objects that describe the firewall port states for the specified instance.GetInstancePortStatesResponse.Builder portStates(InstancePortState... portStates)
An array of objects that describe the firewall port states for the specified instance.
portStates - An array of objects that describe the firewall port states for the specified instance.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.Builder avoiding the need to create
one manually via InstancePortState.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #portStates(List.
portStates - a consumer that will call methods on
InstancePortState.Builder#portStates(java.util.Collection) Copyright © 2023. All rights reserved.