Class GetUrlRequest

java.lang.Object
software.amazon.awssdk.services.s3.model.GetUrlRequest
All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<GetUrlRequest.Builder,GetUrlRequest>

public final class GetUrlRequest extends Object implements SdkPojo, ToCopyableBuilder<GetUrlRequest.Builder,GetUrlRequest>
Request to generate a URL representing an object in Amazon S3. If the object identified by the given bucket and key has public read permissions, then this URL can be directly accessed to retrieve the object's data.
  • Method Details

    • bucket

      public String bucket()
      Returns:
      The name of the bucket for the object
    • key

      public String key()
      Returns:
      The key value for this object.
    • region

      public Region region()
      Returns:
      The region value to use for constructing the URL
    • endpoint

      public URI endpoint()
      Returns:
      The endpoint value to use for constructing the URL
    • versionId

      public String versionId()
      VersionId used to reference a specific version of the object.
      Returns:
      VersionId used to reference a specific version of the object.
    • toBuilder

      public GetUrlRequest.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<GetUrlRequest.Builder,GetUrlRequest>
      Returns:
      a builder for type T
    • builder

      public static GetUrlRequest.Builder builder()
    • getValueForField

      public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.