Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.storagegateway.model
Class UpdateSnapshotScheduleRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.storagegateway.model.UpdateSnapshotScheduleRequest

public class UpdateSnapshotScheduleRequest
extends AmazonWebServiceRequest

Container for the parameters to the UpdateSnapshotSchedule operation.

This operation updates a snapshot schedule configured for a gateway volume.

The default snapshot schedule for volume is once every 24 hours, starting at the creation time of the volume. You can use this API to change the shapshot schedule configured for the volume.

In the request you must identify the gateway volume whose snapshot schedule you want to update, and the schedule information, including when you want the snapshot to begin on a day and the frequency (in hours) of snapshots.

See Also:
AWSStorageGateway.updateSnapshotSchedule(UpdateSnapshotScheduleRequest)

Constructor Summary
UpdateSnapshotScheduleRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
          Optional description of the snapshot that overwrites the existing description.
 Integer getRecurrenceInHours()
          Frequency of snapshots.
 Integer getStartAt()
          The hour of the day at which the snapshot schedule begins.
 String getVolumeARN()
          The Amazon Resource Name (ARN) of the volume.
 int hashCode()
           
 void setDescription(String description)
          Optional description of the snapshot that overwrites the existing description.
 void setRecurrenceInHours(Integer recurrenceInHours)
          Frequency of snapshots.
 void setStartAt(Integer startAt)
          The hour of the day at which the snapshot schedule begins.
 void setVolumeARN(String volumeARN)
          The Amazon Resource Name (ARN) of the volume.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 UpdateSnapshotScheduleRequest withDescription(String description)
          Optional description of the snapshot that overwrites the existing description.
 UpdateSnapshotScheduleRequest withRecurrenceInHours(Integer recurrenceInHours)
          Frequency of snapshots.
 UpdateSnapshotScheduleRequest withStartAt(Integer startAt)
          The hour of the day at which the snapshot schedule begins.
 UpdateSnapshotScheduleRequest withVolumeARN(String volumeARN)
          The Amazon Resource Name (ARN) of the volume.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateSnapshotScheduleRequest

public UpdateSnapshotScheduleRequest()
Method Detail

getVolumeARN

public String getVolumeARN()
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

Constraints:
Length: 50 - 500

Returns:
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

setVolumeARN

public void setVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

Constraints:
Length: 50 - 500

Parameters:
volumeARN - The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

withVolumeARN

public UpdateSnapshotScheduleRequest withVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

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

Constraints:
Length: 50 - 500

Parameters:
volumeARN - The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.
Returns:
A reference to this updated object so that method calls can be chained together.

getStartAt

public Integer getStartAt()
The hour of the day at which the snapshot schedule begins.

Length: 2

Valid Values: An integer between 0 and 23, representing the hour of day.

Constraints:
Range: 0 - 23

Returns:
The hour of the day at which the snapshot schedule begins.

Length: 2

Valid Values: An integer between 0 and 23, representing the hour of day.


setStartAt

public void setStartAt(Integer startAt)
The hour of the day at which the snapshot schedule begins.

Length: 2

Valid Values: An integer between 0 and 23, representing the hour of day.

Constraints:
Range: 0 - 23

Parameters:
startAt - The hour of the day at which the snapshot schedule begins.

Length: 2

Valid Values: An integer between 0 and 23, representing the hour of day.


withStartAt

public UpdateSnapshotScheduleRequest withStartAt(Integer startAt)
The hour of the day at which the snapshot schedule begins.

Length: 2

Valid Values: An integer between 0 and 23, representing the hour of day.

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

Constraints:
Range: 0 - 23

Parameters:
startAt - The hour of the day at which the snapshot schedule begins.

Length: 2

Valid Values: An integer between 0 and 23, representing the hour of day.

Returns:
A reference to this updated object so that method calls can be chained together.

getRecurrenceInHours

public Integer getRecurrenceInHours()
Frequency of snapshots. Specify the number of hours between snapshots.

Valid Values: 1, 2, 4, 8, 12, 24.

Constraints:
Range: 1 - 24

Returns:
Frequency of snapshots. Specify the number of hours between snapshots.

Valid Values: 1, 2, 4, 8, 12, 24.


setRecurrenceInHours

public void setRecurrenceInHours(Integer recurrenceInHours)
Frequency of snapshots. Specify the number of hours between snapshots.

Valid Values: 1, 2, 4, 8, 12, 24.

Constraints:
Range: 1 - 24

Parameters:
recurrenceInHours - Frequency of snapshots. Specify the number of hours between snapshots.

Valid Values: 1, 2, 4, 8, 12, 24.


withRecurrenceInHours

public UpdateSnapshotScheduleRequest withRecurrenceInHours(Integer recurrenceInHours)
Frequency of snapshots. Specify the number of hours between snapshots.

Valid Values: 1, 2, 4, 8, 12, 24.

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

Constraints:
Range: 1 - 24

Parameters:
recurrenceInHours - Frequency of snapshots. Specify the number of hours between snapshots.

Valid Values: 1, 2, 4, 8, 12, 24.

Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
Optional description of the snapshot that overwrites the existing description.

Length: up to 255 characters.

Constraints:
Length: 1 - 255

Returns:
Optional description of the snapshot that overwrites the existing description.

Length: up to 255 characters.


setDescription

public void setDescription(String description)
Optional description of the snapshot that overwrites the existing description.

Length: up to 255 characters.

Constraints:
Length: 1 - 255

Parameters:
description - Optional description of the snapshot that overwrites the existing description.

Length: up to 255 characters.


withDescription

public UpdateSnapshotScheduleRequest withDescription(String description)
Optional description of the snapshot that overwrites the existing description.

Length: up to 255 characters.

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

Constraints:
Length: 1 - 255

Parameters:
description - Optional description of the snapshot that overwrites the existing description.

Length: up to 255 characters.

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 © 2010 Amazon Web Services, Inc. All Rights Reserved.