public static interface PutInstancePublicPortsRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<PutInstancePublicPortsRequest.Builder,PutInstancePublicPortsRequest>
Modifier and Type | Method and Description |
---|---|
PutInstancePublicPortsRequest.Builder |
instanceName(String instanceName)
The name of the instance for which to open ports.
|
PutInstancePublicPortsRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
PutInstancePublicPortsRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
PutInstancePublicPortsRequest.Builder |
portInfos(Collection<PortInfo> portInfos)
An array of objects to describe the ports to open for the specified instance.
|
PutInstancePublicPortsRequest.Builder |
portInfos(Consumer<PortInfo.Builder>... portInfos)
An array of objects to describe the ports to open for the specified instance.
|
PutInstancePublicPortsRequest.Builder |
portInfos(PortInfo... portInfos)
An array of objects to describe the ports to open for the specified instance.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
PutInstancePublicPortsRequest.Builder portInfos(Collection<PortInfo> portInfos)
An array of objects to describe the ports to open for the specified instance.
portInfos
- An array of objects to describe the ports to open for the specified instance.PutInstancePublicPortsRequest.Builder portInfos(PortInfo... portInfos)
An array of objects to describe the ports to open for the specified instance.
portInfos
- An array of objects to describe the ports to open for the specified instance.PutInstancePublicPortsRequest.Builder portInfos(Consumer<PortInfo.Builder>... portInfos)
An array of objects to describe the ports to open for the specified instance.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #portInfos(List)
.portInfos
- a consumer that will call methods on List.Builder
#portInfos(List)
PutInstancePublicPortsRequest.Builder instanceName(String instanceName)
The name of the instance for which to open ports.
instanceName
- The name of the instance for which to open ports.PutInstancePublicPortsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.PutInstancePublicPortsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.