Class CreateClusterSecurityGroupRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.redshift.model.CreateClusterSecurityGroupRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateClusterSecurityGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateClusterSecurityGroupRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateClusterSecurityGroupRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetClusterSecurityGroupName()The name for the security group.StringgetDescription()A description for the security group.List<Tag>getTags()A list of tag instances.inthashCode()voidsetClusterSecurityGroupName(String clusterSecurityGroupName)The name for the security group.voidsetDescription(String description)A description for the security group.voidsetTags(Collection<Tag> tags)A list of tag instances.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateClusterSecurityGroupRequestwithClusterSecurityGroupName(String clusterSecurityGroupName)The name for the security group.CreateClusterSecurityGroupRequestwithDescription(String description)A description for the security group.CreateClusterSecurityGroupRequestwithTags(Tag... tags)A list of tag instances.CreateClusterSecurityGroupRequestwithTags(Collection<Tag> tags)A list of tag instances.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setClusterSecurityGroupName
public void setClusterSecurityGroupName(String clusterSecurityGroupName)
The name for the security group. Amazon Redshift stores the value as a lowercase string.
Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all security groups that are created by your AWS account.
Example:
examplesecuritygroup- Parameters:
clusterSecurityGroupName- The name for the security group. Amazon Redshift stores the value as a lowercase string.Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all security groups that are created by your AWS account.
Example:
examplesecuritygroup
-
getClusterSecurityGroupName
public String getClusterSecurityGroupName()
The name for the security group. Amazon Redshift stores the value as a lowercase string.
Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all security groups that are created by your AWS account.
Example:
examplesecuritygroup- Returns:
- The name for the security group. Amazon Redshift stores the value
as a lowercase string.
Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all security groups that are created by your AWS account.
Example:
examplesecuritygroup
-
withClusterSecurityGroupName
public CreateClusterSecurityGroupRequest withClusterSecurityGroupName(String clusterSecurityGroupName)
The name for the security group. Amazon Redshift stores the value as a lowercase string.
Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all security groups that are created by your AWS account.
Example:
examplesecuritygroup- Parameters:
clusterSecurityGroupName- The name for the security group. Amazon Redshift stores the value as a lowercase string.Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all security groups that are created by your AWS account.
Example:
examplesecuritygroup- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
A description for the security group.
- Parameters:
description- A description for the security group.
-
getDescription
public String getDescription()
A description for the security group.
- Returns:
- A description for the security group.
-
withDescription
public CreateClusterSecurityGroupRequest withDescription(String description)
A description for the security group.
- Parameters:
description- A description for the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTags
public void setTags(Collection<Tag> tags)
A list of tag instances.
- Parameters:
tags- A list of tag instances.
-
withTags
public CreateClusterSecurityGroupRequest withTags(Tag... tags)
A list of tag instances.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- A list of tag instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public CreateClusterSecurityGroupRequest withTags(Collection<Tag> tags)
A list of tag instances.
- Parameters:
tags- A list of tag instances.- Returns:
- Returns a reference to this 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateClusterSecurityGroupRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-