Interface GetDistributionsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetDistributionsResponse.Builder,GetDistributionsResponse>,LightsailResponse.Builder,SdkBuilder<GetDistributionsResponse.Builder,GetDistributionsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetDistributionsResponse
public static interface GetDistributionsResponse.Builder extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetDistributionsResponse.Builder,GetDistributionsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetDistributionsResponse.Builderdistributions(Collection<LightsailDistribution> distributions)An array of objects that describe your distributions.GetDistributionsResponse.Builderdistributions(Consumer<LightsailDistribution.Builder>... distributions)An array of objects that describe your distributions.GetDistributionsResponse.Builderdistributions(LightsailDistribution... distributions)An array of objects that describe your distributions.GetDistributionsResponse.BuildernextPageToken(String nextPageToken)The token to advance to the next page of results from your request.-
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
-
distributions
GetDistributionsResponse.Builder distributions(Collection<LightsailDistribution> distributions)
An array of objects that describe your distributions.
- Parameters:
distributions- An array of objects that describe your distributions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distributions
GetDistributionsResponse.Builder distributions(LightsailDistribution... distributions)
An array of objects that describe your distributions.
- Parameters:
distributions- An array of objects that describe your distributions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distributions
GetDistributionsResponse.Builder distributions(Consumer<LightsailDistribution.Builder>... distributions)
An array of objects that describe your distributions.
This is a convenience method that creates an instance of theLightsailDistribution.Builderavoiding the need to create one manually viaLightsailDistribution.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#distributions(List.) - Parameters:
distributions- a consumer that will call methods onLightsailDistribution.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#distributions(java.util.Collection)
-
nextPageToken
GetDistributionsResponse.Builder nextPageToken(String nextPageToken)
The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another
GetDistributionsrequest and specify the next page token using thepageTokenparameter.- Parameters:
nextPageToken- The token to advance to the next page of results from your request.A next page token is not returned if there are no more results to display.
To get the next page of results, perform another
GetDistributionsrequest and specify the next page token using thepageTokenparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-