Class CreateTapesRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.storagegateway.model.CreateTapesRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateTapesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateTapesInput
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateTapesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTapesRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetClientToken()A unique identifier that you use to retry a request.StringgetGatewayARN()The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with.IntegergetNumTapesToCreate()The number of virtual tapes that you want to create.StringgetTapeBarcodePrefix()A prefix that you append to the barcode of the virtual tape you are creating.LonggetTapeSizeInBytes()The size, in bytes, of the virtual tapes that you want to create.inthashCode()voidsetClientToken(String clientToken)A unique identifier that you use to retry a request.voidsetGatewayARN(String gatewayARN)The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with.voidsetNumTapesToCreate(Integer numTapesToCreate)The number of virtual tapes that you want to create.voidsetTapeBarcodePrefix(String tapeBarcodePrefix)A prefix that you append to the barcode of the virtual tape you are creating.voidsetTapeSizeInBytes(Long tapeSizeInBytes)The size, in bytes, of the virtual tapes that you want to create.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateTapesRequestwithClientToken(String clientToken)A unique identifier that you use to retry a request.CreateTapesRequestwithGatewayARN(String gatewayARN)The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with.CreateTapesRequestwithNumTapesToCreate(Integer numTapesToCreate)The number of virtual tapes that you want to create.CreateTapesRequestwithTapeBarcodePrefix(String tapeBarcodePrefix)A prefix that you append to the barcode of the virtual tape you are creating.CreateTapesRequestwithTapeSizeInBytes(Long tapeSizeInBytes)The size, in bytes, of the virtual tapes that you want to create.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setGatewayARN
public void setGatewayARN(String gatewayARN)
The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.
- Parameters:
gatewayARN- The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.
-
getGatewayARN
public String getGatewayARN()
The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.
- Returns:
- The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.
-
withGatewayARN
public CreateTapesRequest withGatewayARN(String gatewayARN)
The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.
- Parameters:
gatewayARN- The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTapeSizeInBytes
public void setTapeSizeInBytes(Long tapeSizeInBytes)
The size, in bytes, of the virtual tapes that you want to create.
The size must be aligned by gigabyte (1024*1024*1024 byte).
- Parameters:
tapeSizeInBytes- The size, in bytes, of the virtual tapes that you want to create.The size must be aligned by gigabyte (1024*1024*1024 byte).
-
getTapeSizeInBytes
public Long getTapeSizeInBytes()
The size, in bytes, of the virtual tapes that you want to create.
The size must be aligned by gigabyte (1024*1024*1024 byte).
- Returns:
- The size, in bytes, of the virtual tapes that you want to
create.
The size must be aligned by gigabyte (1024*1024*1024 byte).
-
withTapeSizeInBytes
public CreateTapesRequest withTapeSizeInBytes(Long tapeSizeInBytes)
The size, in bytes, of the virtual tapes that you want to create.
The size must be aligned by gigabyte (1024*1024*1024 byte).
- Parameters:
tapeSizeInBytes- The size, in bytes, of the virtual tapes that you want to create.The size must be aligned by gigabyte (1024*1024*1024 byte).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClientToken
public void setClientToken(String clientToken)
A unique identifier that you use to retry a request. If you retry a request, use the same
ClientTokenyou specified in the initial request.Using the same
ClientTokenprevents creating the tape multiple times.- Parameters:
clientToken- A unique identifier that you use to retry a request. If you retry a request, use the sameClientTokenyou specified in the initial request.Using the same
ClientTokenprevents creating the tape multiple times.
-
getClientToken
public String getClientToken()
A unique identifier that you use to retry a request. If you retry a request, use the same
ClientTokenyou specified in the initial request.Using the same
ClientTokenprevents creating the tape multiple times.- Returns:
- A unique identifier that you use to retry a request. If you retry
a request, use the same
ClientTokenyou specified in the initial request.Using the same
ClientTokenprevents creating the tape multiple times.
-
withClientToken
public CreateTapesRequest withClientToken(String clientToken)
A unique identifier that you use to retry a request. If you retry a request, use the same
ClientTokenyou specified in the initial request.Using the same
ClientTokenprevents creating the tape multiple times.- Parameters:
clientToken- A unique identifier that you use to retry a request. If you retry a request, use the sameClientTokenyou specified in the initial request.Using the same
ClientTokenprevents creating the tape multiple times.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNumTapesToCreate
public void setNumTapesToCreate(Integer numTapesToCreate)
The number of virtual tapes that you want to create.
- Parameters:
numTapesToCreate- The number of virtual tapes that you want to create.
-
getNumTapesToCreate
public Integer getNumTapesToCreate()
The number of virtual tapes that you want to create.
- Returns:
- The number of virtual tapes that you want to create.
-
withNumTapesToCreate
public CreateTapesRequest withNumTapesToCreate(Integer numTapesToCreate)
The number of virtual tapes that you want to create.
- Parameters:
numTapesToCreate- The number of virtual tapes that you want to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTapeBarcodePrefix
public void setTapeBarcodePrefix(String tapeBarcodePrefix)
A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.
The prefix must be 1 to 4 characters in length and must be one of the uppercase letters from A to Z.
- Parameters:
tapeBarcodePrefix- A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.The prefix must be 1 to 4 characters in length and must be one of the uppercase letters from A to Z.
-
getTapeBarcodePrefix
public String getTapeBarcodePrefix()
A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.
The prefix must be 1 to 4 characters in length and must be one of the uppercase letters from A to Z.
- Returns:
- A prefix that you append to the barcode of the virtual tape you
are creating. This prefix makes the barcode unique.
The prefix must be 1 to 4 characters in length and must be one of the uppercase letters from A to Z.
-
withTapeBarcodePrefix
public CreateTapesRequest withTapeBarcodePrefix(String tapeBarcodePrefix)
A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.
The prefix must be 1 to 4 characters in length and must be one of the uppercase letters from A to Z.
- Parameters:
tapeBarcodePrefix- A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.The prefix must be 1 to 4 characters in length and must be one of the uppercase letters from A to Z.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateTapesRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-