Class GetBucketsRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.lightsail.model.LightsailRequest
-
- software.amazon.awssdk.services.lightsail.model.GetBucketsRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetBucketsRequest.Builder,GetBucketsRequest>
@Generated("software.amazon.awssdk:codegen") public final class GetBucketsRequest extends LightsailRequest implements ToCopyableBuilder<GetBucketsRequest.Builder,GetBucketsRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetBucketsRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbucketName()The name of the bucket for which to return information.static GetBucketsRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanincludeConnectedResources()A Boolean value that indicates whether to include Lightsail instances that were given access to the bucket using the SetResourceAccessForBucket action.StringpageToken()The token to advance to the next page of results from your request.List<SdkField<?>>sdkFields()static Class<? extends GetBucketsRequest.Builder>serializableBuilderClass()GetBucketsRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
bucketName
public final String bucketName()
The name of the bucket for which to return information.
When omitted, the response includes all of your buckets in the Amazon Web Services Region where the request is made.
- Returns:
- The name of the bucket for which to return information.
When omitted, the response includes all of your buckets in the Amazon Web Services Region where the request is made.
-
pageToken
public final String pageToken()
The token to advance to the next page of results from your request.
To get a page token, perform an initial
GetBucketsrequest. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.- Returns:
- The token to advance to the next page of results from your request.
To get a page token, perform an initial
GetBucketsrequest. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.
-
includeConnectedResources
public final Boolean includeConnectedResources()
A Boolean value that indicates whether to include Lightsail instances that were given access to the bucket using the SetResourceAccessForBucket action.
- Returns:
- A Boolean value that indicates whether to include Lightsail instances that were given access to the bucket using the SetResourceAccessForBucket action.
-
toBuilder
public GetBucketsRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetBucketsRequest.Builder,GetBucketsRequest>- Specified by:
toBuilderin classLightsailRequest
-
builder
public static GetBucketsRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetBucketsRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-