public class CreateTapesRequest extends AmazonWebServiceRequest implements Serializable
CreateTapes operation
.
Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes.
NOTE:Cache storage must be allocated to the gateway before you can create virtual tapes. Use the AddCache operation to add cache storage to a gateway.
Constructor and Description |
---|
CreateTapesRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getClientToken()
A unique identifier that you use to retry a request.
|
String |
getGatewayARN()
The unique Amazon Resource Name(ARN) that represents the gateway to
associate the virtual tapes with.
|
Integer |
getNumTapesToCreate()
The number of virtual tapes you want to create.
|
String |
getTapeBarcodePrefix()
A prefix you append to the barcode of the virtual tape you are
creating.
|
Long |
getTapeSizeInBytes()
The size, in bytes, of the virtual tapes you want to create.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A unique identifier that you use to retry a request.
|
void |
setGatewayARN(String gatewayARN)
The unique Amazon Resource Name(ARN) that represents the gateway to
associate the virtual tapes with.
|
void |
setNumTapesToCreate(Integer numTapesToCreate)
The number of virtual tapes you want to create.
|
void |
setTapeBarcodePrefix(String tapeBarcodePrefix)
A prefix you append to the barcode of the virtual tape you are
creating.
|
void |
setTapeSizeInBytes(Long tapeSizeInBytes)
The size, in bytes, of the virtual tapes you want to create.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateTapesRequest |
withClientToken(String clientToken)
A unique identifier that you use to retry a request.
|
CreateTapesRequest |
withGatewayARN(String gatewayARN)
The unique Amazon Resource Name(ARN) that represents the gateway to
associate the virtual tapes with.
|
CreateTapesRequest |
withNumTapesToCreate(Integer numTapesToCreate)
The number of virtual tapes you want to create.
|
CreateTapesRequest |
withTapeBarcodePrefix(String tapeBarcodePrefix)
A prefix you append to the barcode of the virtual tape you are
creating.
|
CreateTapesRequest |
withTapeSizeInBytes(Long tapeSizeInBytes)
The size, in bytes, of the virtual tapes you want to create.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getGatewayARN()
Constraints:
Length: 50 - 500
public void setGatewayARN(String gatewayARN)
Constraints:
Length: 50 - 500
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.public CreateTapesRequest withGatewayARN(String gatewayARN)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 50 - 500
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.public Long getTapeSizeInBytes()
Constraints:
Range: 107374182400 - 2748779069440
public void setTapeSizeInBytes(Long tapeSizeInBytes)
Constraints:
Range: 107374182400 - 2748779069440
tapeSizeInBytes
- The size, in bytes, of the virtual tapes you want to create. public CreateTapesRequest withTapeSizeInBytes(Long tapeSizeInBytes)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 107374182400 - 2748779069440
tapeSizeInBytes
- The size, in bytes, of the virtual tapes you want to create. public String getClientToken()
ClientToken
you specified in the
initial request. ClientToken
prevents creating the tape multiple times.
Constraints:
Length: 5 - 100
ClientToken
you specified in the
initial request. ClientToken
prevents creating the tape multiple times.public void setClientToken(String clientToken)
ClientToken
you specified in the
initial request. ClientToken
prevents creating the tape multiple times.
Constraints:
Length: 5 - 100
clientToken
- A unique identifier that you use to retry a request. If you retry a
request, use the same ClientToken
you specified in the
initial request. ClientToken
prevents creating the tape multiple times.public CreateTapesRequest withClientToken(String clientToken)
ClientToken
you specified in the
initial request. ClientToken
prevents creating the tape multiple times.Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 5 - 100
clientToken
- A unique identifier that you use to retry a request. If you retry a
request, use the same ClientToken
you specified in the
initial request. ClientToken
prevents creating the tape multiple times.public Integer getNumTapesToCreate()
Constraints:
Range: 1 - 10
public void setNumTapesToCreate(Integer numTapesToCreate)
Constraints:
Range: 1 - 10
numTapesToCreate
- The number of virtual tapes you want to create.public CreateTapesRequest withNumTapesToCreate(Integer numTapesToCreate)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 10
numTapesToCreate
- The number of virtual tapes you want to create.public String getTapeBarcodePrefix()
Constraints:
Length: 1 - 4
Pattern: ^[A-Z]*$
public void setTapeBarcodePrefix(String tapeBarcodePrefix)
Constraints:
Length: 1 - 4
Pattern: ^[A-Z]*$
tapeBarcodePrefix
- A prefix you append to the barcode of the virtual tape you are
creating. This makes a barcode unique. public CreateTapesRequest withTapeBarcodePrefix(String tapeBarcodePrefix)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 4
Pattern: ^[A-Z]*$
tapeBarcodePrefix
- A prefix you append to the barcode of the virtual tape you are
creating. This makes a barcode unique. public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.