com.amazonaws.services.storagegateway.model
Class CreateTapesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.storagegateway.model.CreateTapesRequest
All Implemented Interfaces:
Serializable

public class CreateTapesRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the 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.

See Also:
AWSStorageGateway.createTapes(CreateTapesRequest), Serialized Form

Constructor Summary
CreateTapesRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateTapesRequest

public CreateTapesRequest()
Method Detail

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.

Constraints:
Length: 50 - 500

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.

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.

Constraints:
Length: 50 - 500

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.

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 50 - 500

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:
A reference to this updated object so that method calls can be chained together.

getTapeSizeInBytes

public Long getTapeSizeInBytes()
The size, in bytes, of the virtual tapes you want to create. The size must be gigabyte (1024*1024*1024 byte) aligned.

Constraints:
Range: 107374182400 - 2748779069440

Returns:
The size, in bytes, of the virtual tapes you want to create. The size must be gigabyte (1024*1024*1024 byte) aligned.

setTapeSizeInBytes

public void setTapeSizeInBytes(Long tapeSizeInBytes)
The size, in bytes, of the virtual tapes you want to create. The size must be gigabyte (1024*1024*1024 byte) aligned.

Constraints:
Range: 107374182400 - 2748779069440

Parameters:
tapeSizeInBytes - The size, in bytes, of the virtual tapes you want to create. The size must be gigabyte (1024*1024*1024 byte) aligned.

withTapeSizeInBytes

public CreateTapesRequest withTapeSizeInBytes(Long tapeSizeInBytes)
The size, in bytes, of the virtual tapes you want to create. The size must be gigabyte (1024*1024*1024 byte) aligned.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 107374182400 - 2748779069440

Parameters:
tapeSizeInBytes - The size, in bytes, of the virtual tapes you want to create. The size must be gigabyte (1024*1024*1024 byte) aligned.
Returns:
A reference to this updated object so that method calls can be chained together.

getClientToken

public String getClientToken()
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. Using the same ClientToken prevents creating the tape multiple times.

Constraints:
Length: 5 - 100

Returns:
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. Using the same ClientToken prevents creating the tape multiple times.

setClientToken

public void setClientToken(String 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. Using the same ClientToken prevents creating the tape multiple times.

Constraints:
Length: 5 - 100

Parameters:
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. Using the same ClientToken prevents 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 ClientToken you specified in the initial request. Using the same 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

Parameters:
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. Using the same ClientToken prevents creating the tape multiple times.
Returns:
A reference to this updated object so that method calls can be chained together.

getNumTapesToCreate

public Integer getNumTapesToCreate()
The number of virtual tapes you want to create.

Constraints:
Range: 1 - 10

Returns:
The number of virtual tapes you want to create.

setNumTapesToCreate

public void setNumTapesToCreate(Integer numTapesToCreate)
The number of virtual tapes you want to create.

Constraints:
Range: 1 - 10

Parameters:
numTapesToCreate - The number of virtual tapes you want to create.

withNumTapesToCreate

public CreateTapesRequest withNumTapesToCreate(Integer numTapesToCreate)
The number of virtual tapes you want to create.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 1 - 10

Parameters:
numTapesToCreate - The number of virtual tapes you want to create.
Returns:
A reference to this updated object so that method calls can be chained together.

getTapeBarcodePrefix

public String getTapeBarcodePrefix()
A prefix you append to the barcode of the virtual tape you are creating. This makes a barcode unique. The prefix must be 1 to 4 characters in length and must be upper-case letters A-Z.

Constraints:
Length: 1 - 4
Pattern: ^[A-Z]*$

Returns:
A prefix you append to the barcode of the virtual tape you are creating. This makes a barcode unique. The prefix must be 1 to 4 characters in length and must be upper-case letters A-Z.

setTapeBarcodePrefix

public void setTapeBarcodePrefix(String tapeBarcodePrefix)
A prefix you append to the barcode of the virtual tape you are creating. This makes a barcode unique. The prefix must be 1 to 4 characters in length and must be upper-case letters A-Z.

Constraints:
Length: 1 - 4
Pattern: ^[A-Z]*$

Parameters:
tapeBarcodePrefix - A prefix you append to the barcode of the virtual tape you are creating. This makes a barcode unique. The prefix must be 1 to 4 characters in length and must be upper-case letters A-Z.

withTapeBarcodePrefix

public CreateTapesRequest withTapeBarcodePrefix(String tapeBarcodePrefix)
A prefix you append to the barcode of the virtual tape you are creating. This makes a barcode unique. The prefix must be 1 to 4 characters in length and must be upper-case letters A-Z.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 4
Pattern: ^[A-Z]*$

Parameters:
tapeBarcodePrefix - A prefix you append to the barcode of the virtual tape you are creating. This makes a barcode unique. The prefix must be 1 to 4 characters in length and must be upper-case letters A-Z.
Returns:
A reference to this updated 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:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.