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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GetUrlRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
bucket()
static GetUrlRequest.Builder
builder()
URI
endpoint()
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
String
key()
Region
region()
List<SdkField<?>>
sdkFields()
GetUrlRequest.Builder
toBuilder()
String
versionId()
VersionId used to reference a specific version of the object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
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()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<GetUrlRequest.Builder,GetUrlRequest>
-
builder
public static GetUrlRequest.Builder builder()
-
-