public class RestoreFromClusterSnapshotRequest extends AmazonWebServiceRequest implements Serializable
RestoreFromClusterSnapshot operation
.
Creates a new cluster from a snapshot. Amazon Redshift creates the resulting cluster with the same configuration as the original cluster from which the snapshot was created, except that the new cluster is created with the default cluster security and parameter group. After Amazon Redshift creates the cluster you can use the ModifyCluster API to associate a different security group and different parameter group with the restored cluster.
If a snapshot is taken of a cluster in VPC, you can restore it only in VPC. In this case, you must provide a cluster subnet group where you want the cluster restored. If snapshot is taken of a cluster outside VPC, then you can restore it only outside VPC.
For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Management Guide .
Constructor and Description |
---|
RestoreFromClusterSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getAllowVersionUpgrade()
If
true , upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster. |
String |
getAvailabilityZone()
The Amazon EC2 Availability Zone in which to restore the cluster.
|
String |
getClusterIdentifier()
The identifier of the cluster that will be created from restoring the
snapshot.
|
String |
getClusterSubnetGroupName()
The name of the subnet group where you want to cluster restored.
|
String |
getOwnerAccount()
The AWS customer account used to create or copy the snapshot.
|
Integer |
getPort()
The port number on which the cluster accepts connections.
|
Boolean |
getPubliclyAccessible()
If
true , the cluster can be accessed from a public
network. |
String |
getSnapshotClusterIdentifier()
The name of the cluster the source snapshot was created from.
|
String |
getSnapshotIdentifier()
The name of the snapshot from which to create the new cluster.
|
int |
hashCode() |
Boolean |
isAllowVersionUpgrade()
If
true , upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster. |
Boolean |
isPubliclyAccessible()
If
true , the cluster can be accessed from a public
network. |
void |
setAllowVersionUpgrade(Boolean allowVersionUpgrade)
If
true , upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster. |
void |
setAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone in which to restore the cluster.
|
void |
setClusterIdentifier(String clusterIdentifier)
The identifier of the cluster that will be created from restoring the
snapshot.
|
void |
setClusterSubnetGroupName(String clusterSubnetGroupName)
The name of the subnet group where you want to cluster restored.
|
void |
setOwnerAccount(String ownerAccount)
The AWS customer account used to create or copy the snapshot.
|
void |
setPort(Integer port)
The port number on which the cluster accepts connections.
|
void |
setPubliclyAccessible(Boolean publiclyAccessible)
If
true , the cluster can be accessed from a public
network. |
void |
setSnapshotClusterIdentifier(String snapshotClusterIdentifier)
The name of the cluster the source snapshot was created from.
|
void |
setSnapshotIdentifier(String snapshotIdentifier)
The name of the snapshot from which to create the new cluster.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RestoreFromClusterSnapshotRequest |
withAllowVersionUpgrade(Boolean allowVersionUpgrade)
If
true , upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster. |
RestoreFromClusterSnapshotRequest |
withAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone in which to restore the cluster.
|
RestoreFromClusterSnapshotRequest |
withClusterIdentifier(String clusterIdentifier)
The identifier of the cluster that will be created from restoring the
snapshot.
|
RestoreFromClusterSnapshotRequest |
withClusterSubnetGroupName(String clusterSubnetGroupName)
The name of the subnet group where you want to cluster restored.
|
RestoreFromClusterSnapshotRequest |
withOwnerAccount(String ownerAccount)
The AWS customer account used to create or copy the snapshot.
|
RestoreFromClusterSnapshotRequest |
withPort(Integer port)
The port number on which the cluster accepts connections.
|
RestoreFromClusterSnapshotRequest |
withPubliclyAccessible(Boolean publiclyAccessible)
If
true , the cluster can be accessed from a public
network. |
RestoreFromClusterSnapshotRequest |
withSnapshotClusterIdentifier(String snapshotClusterIdentifier)
The name of the cluster the source snapshot was created from.
|
RestoreFromClusterSnapshotRequest |
withSnapshotIdentifier(String snapshotIdentifier)
The name of the snapshot from which to create the new cluster.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getClusterIdentifier()
Constraints:
Constraints:
public void setClusterIdentifier(String clusterIdentifier)
Constraints:
clusterIdentifier
- The identifier of the cluster that will be created from restoring the
snapshot.
Constraints:
public RestoreFromClusterSnapshotRequest withClusterIdentifier(String clusterIdentifier)
Constraints:
Returns a reference to this object so that method calls can be chained together.
clusterIdentifier
- The identifier of the cluster that will be created from restoring the
snapshot.
Constraints:
public String getSnapshotIdentifier()
Example:
my-snapshot-id
Example:
my-snapshot-id
public void setSnapshotIdentifier(String snapshotIdentifier)
Example:
my-snapshot-id
snapshotIdentifier
- The name of the snapshot from which to create the new cluster. This
parameter isn't case sensitive. Example:
my-snapshot-id
public RestoreFromClusterSnapshotRequest withSnapshotIdentifier(String snapshotIdentifier)
Example:
my-snapshot-id
Returns a reference to this object so that method calls can be chained together.
snapshotIdentifier
- The name of the snapshot from which to create the new cluster. This
parameter isn't case sensitive. Example:
my-snapshot-id
public String getSnapshotClusterIdentifier()
public void setSnapshotClusterIdentifier(String snapshotClusterIdentifier)
snapshotClusterIdentifier
- The name of the cluster the source snapshot was created from. This
parameter is required if your IAM user has a policy containing a
snapshot resource element that specifies anything other than * for the
cluster name.public RestoreFromClusterSnapshotRequest withSnapshotClusterIdentifier(String snapshotClusterIdentifier)
Returns a reference to this object so that method calls can be chained together.
snapshotClusterIdentifier
- The name of the cluster the source snapshot was created from. This
parameter is required if your IAM user has a policy containing a
snapshot resource element that specifies anything other than * for the
cluster name.public Integer getPort()
Default: The same port as the original cluster.
Constraints: Must be between
1115
and 65535
.
Default: The same port as the original cluster.
Constraints: Must be between
1115
and 65535
.
public void setPort(Integer port)
Default: The same port as the original cluster.
Constraints: Must be between
1115
and 65535
.
port
- The port number on which the cluster accepts connections. Default: The same port as the original cluster.
Constraints: Must be between
1115
and 65535
.
public RestoreFromClusterSnapshotRequest withPort(Integer port)
Default: The same port as the original cluster.
Constraints: Must be between
1115
and 65535
.
Returns a reference to this object so that method calls can be chained together.
port
- The port number on which the cluster accepts connections. Default: The same port as the original cluster.
Constraints: Must be between
1115
and 65535
.
public String getAvailabilityZone()
Default: A random, system-chosen Availability Zone.
Example:
us-east-1a
Default: A random, system-chosen Availability Zone.
Example:
us-east-1a
public void setAvailabilityZone(String availabilityZone)
Default: A random, system-chosen Availability Zone.
Example:
us-east-1a
availabilityZone
- The Amazon EC2 Availability Zone in which to restore the cluster.
Default: A random, system-chosen Availability Zone.
Example:
us-east-1a
public RestoreFromClusterSnapshotRequest withAvailabilityZone(String availabilityZone)
Default: A random, system-chosen Availability Zone.
Example:
us-east-1a
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Amazon EC2 Availability Zone in which to restore the cluster.
Default: A random, system-chosen Availability Zone.
Example:
us-east-1a
public Boolean isAllowVersionUpgrade()
true
, upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster.
Default: true
true
, upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster.
Default: true
public void setAllowVersionUpgrade(Boolean allowVersionUpgrade)
true
, upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster.
Default: true
allowVersionUpgrade
- If true
, upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster.
Default: true
public RestoreFromClusterSnapshotRequest withAllowVersionUpgrade(Boolean allowVersionUpgrade)
true
, upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster.
Default: true
Returns a reference to this object so that method calls can be chained together.
allowVersionUpgrade
- If true
, upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster.
Default: true
public Boolean getAllowVersionUpgrade()
true
, upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster.
Default: true
true
, upgrades can be applied during the maintenance
window to the Amazon Redshift engine that is running on the cluster.
Default: true
public String getClusterSubnetGroupName()
A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.
A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.
public void setClusterSubnetGroupName(String clusterSubnetGroupName)
A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.
clusterSubnetGroupName
- The name of the subnet group where you want to cluster restored. A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.
public RestoreFromClusterSnapshotRequest withClusterSubnetGroupName(String clusterSubnetGroupName)
A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.
Returns a reference to this object so that method calls can be chained together.
clusterSubnetGroupName
- The name of the subnet group where you want to cluster restored. A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.
public Boolean isPubliclyAccessible()
true
, the cluster can be accessed from a public
network.true
, the cluster can be accessed from a public
network.public void setPubliclyAccessible(Boolean publiclyAccessible)
true
, the cluster can be accessed from a public
network.publiclyAccessible
- If true
, the cluster can be accessed from a public
network.public RestoreFromClusterSnapshotRequest withPubliclyAccessible(Boolean publiclyAccessible)
true
, the cluster can be accessed from a public
network.
Returns a reference to this object so that method calls can be chained together.
publiclyAccessible
- If true
, the cluster can be accessed from a public
network.public Boolean getPubliclyAccessible()
true
, the cluster can be accessed from a public
network.true
, the cluster can be accessed from a public
network.public String getOwnerAccount()
public void setOwnerAccount(String ownerAccount)
ownerAccount
- The AWS customer account used to create or copy the snapshot. Required
if you are restoring a snapshot you do not own, optional if you own
the snapshot.public RestoreFromClusterSnapshotRequest withOwnerAccount(String ownerAccount)
Returns a reference to this object so that method calls can be chained together.
ownerAccount
- The AWS customer account used to create or copy the snapshot. Required
if you are restoring a snapshot you do not own, optional if you own
the snapshot.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.