|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.redshift.model.RestoreFromClusterSnapshotRequest
public class RestoreFromClusterSnapshotRequest
Container for the parameters to the 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 .
AmazonRedshift.restoreFromClusterSnapshot(RestoreFromClusterSnapshotRequest)
,
Serialized FormConstructor Summary | |
---|---|
RestoreFromClusterSnapshotRequest()
|
Method Summary | |
---|---|
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. |
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 |
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 |
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 |
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 |
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 |
withSnapshotIdentifier(String snapshotIdentifier)
The name of the snapshot from which to create the new cluster. |
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 |
---|
public RestoreFromClusterSnapshotRequest()
Method Detail |
---|
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 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 toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |