Class GetObjectRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.mediastoredata.model.MediaStoreDataRequest
-
- software.amazon.awssdk.services.mediastoredata.model.GetObjectRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetObjectRequest.Builder,GetObjectRequest>
@Generated("software.amazon.awssdk:codegen") public final class GetObjectRequest extends MediaStoreDataRequest implements ToCopyableBuilder<GetObjectRequest.Builder,GetObjectRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetObjectRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetObjectRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringpath()The path (including the file name) where the object is stored in the container.Stringrange()The range bytes of an object to retrieve.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends GetObjectRequest.Builder>serializableBuilderClass()GetObjectRequest.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
-
path
public final String path()
The path (including the file name) where the object is stored in the container. Format: <folder name>/<folder name>/<file name>
For example, to upload the file
mlaw.avito the folder pathpremium\canadain the containermovies, enter the pathpremium/canada/mlaw.avi.Do not include the container name in this path.
If the path includes any folders that don't exist yet, the service creates them. For example, suppose you have an existing
premium/usasubfolder. If you specifypremium/canada, the service creates acanadasubfolder in thepremiumfolder. You then have two subfolders,usaandcanada, in thepremiumfolder.There is no correlation between the path to the source and the path (folders) in the container in AWS Elemental MediaStore.
For more information about folders and how they exist in a container, see the AWS Elemental MediaStore User Guide.
The file name is the name that is assigned to the file that you upload. The file can have the same name inside and outside of AWS Elemental MediaStore, or it can have the same name. The file name can include or omit an extension.
- Returns:
- The path (including the file name) where the object is stored in the container. Format: <folder
name>/<folder name>/<file name>
For example, to upload the file
mlaw.avito the folder pathpremium\canadain the containermovies, enter the pathpremium/canada/mlaw.avi.Do not include the container name in this path.
If the path includes any folders that don't exist yet, the service creates them. For example, suppose you have an existing
premium/usasubfolder. If you specifypremium/canada, the service creates acanadasubfolder in thepremiumfolder. You then have two subfolders,usaandcanada, in thepremiumfolder.There is no correlation between the path to the source and the path (folders) in the container in AWS Elemental MediaStore.
For more information about folders and how they exist in a container, see the AWS Elemental MediaStore User Guide.
The file name is the name that is assigned to the file that you upload. The file can have the same name inside and outside of AWS Elemental MediaStore, or it can have the same name. The file name can include or omit an extension.
-
range
public final String range()
The range bytes of an object to retrieve. For more information about the
Rangeheader, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35. AWS Elemental MediaStore ignores this header for partially uploaded objects that have streaming upload availability.- Returns:
- The range bytes of an object to retrieve. For more information about the
Rangeheader, see http://www.w3.org/Protocols/ rfc2616/rfc2616-sec14.html#sec14.35. AWS Elemental MediaStore ignores this header for partially uploaded objects that have streaming upload availability.
-
toBuilder
public GetObjectRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetObjectRequest.Builder,GetObjectRequest>- Specified by:
toBuilderin classMediaStoreDataRequest
-
builder
public static GetObjectRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetObjectRequest.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
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-