Class ListVersionsRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<ListVersionsRequest.Builder,ListVersionsRequest>

@Generated("software.amazon.awssdk:codegen") public final class ListVersionsRequest extends OpenSearchRequest implements ToCopyableBuilder<ListVersionsRequest.Builder,ListVersionsRequest>

Container for the request parameters to the ListVersions operation.

  • Method Details

    • maxResults

      public final Integer maxResults()

      An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

      Returns:
      An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
    • nextToken

      public final String nextToken()

      If your initial ListVersions operation returns a nextToken, you can include the returned nextToken in subsequent ListVersions operations, which returns results in the next page.

      Returns:
      If your initial ListVersions operation returns a nextToken, you can include the returned nextToken in subsequent ListVersions operations, which returns results in the next page.
    • toBuilder

      public ListVersionsRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<ListVersionsRequest.Builder,ListVersionsRequest>
      Specified by:
      toBuilder in class OpenSearchRequest
    • builder

      public static ListVersionsRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ListVersionsRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo