@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSecurityGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateSecurityGroupRequest>
Contains the parameters for CreateSecurityGroup.
NOOP| Constructor and Description | 
|---|
CreateSecurityGroupRequest()
Default constructor for CreateSecurityGroupRequest object. 
 | 
CreateSecurityGroupRequest(String groupName,
                          String description)
Constructs a new CreateSecurityGroupRequest object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CreateSecurityGroupRequest | 
clone()
Creates a shallow clone of this object for all fields except the handler context. 
 | 
boolean | 
equals(Object obj)  | 
String | 
getDescription()
 A description for the security group. 
 | 
Request<CreateSecurityGroupRequest> | 
getDryRunRequest()
This method is intended for internal use only. 
 | 
String | 
getGroupName()
 The name of the security group. 
 | 
String | 
getVpcId()
 [EC2-VPC] The ID of the VPC. 
 | 
int | 
hashCode()  | 
void | 
setDescription(String description)
 A description for the security group. 
 | 
void | 
setGroupName(String groupName)
 The name of the security group. 
 | 
void | 
setVpcId(String vpcId)
 [EC2-VPC] The ID of the VPC. 
 | 
String | 
toString()
Returns a string representation of this object; useful for testing and debugging. 
 | 
CreateSecurityGroupRequest | 
withDescription(String description)
 A description for the security group. 
 | 
CreateSecurityGroupRequest | 
withGroupName(String groupName)
 The name of the security group. 
 | 
CreateSecurityGroupRequest | 
withVpcId(String vpcId)
 [EC2-VPC] The ID of the VPC. 
 | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic CreateSecurityGroupRequest()
public CreateSecurityGroupRequest(String groupName, String description)
groupName - The name of the security group.
        Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
description - A description for the security group. This is informational only.
        
        Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$
public void setDescription(String description)
A description for the security group. This is informational only.
Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
description - A description for the security group. This is informational only.
        Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$
public String getDescription()
A description for the security group. This is informational only.
Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$
public CreateSecurityGroupRequest withDescription(String description)
A description for the security group. This is informational only.
Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
description - A description for the security group. This is informational only.
        Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
public void setGroupName(String groupName)
The name of the security group.
Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
groupName - The name of the security group.
        Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$
public String getGroupName()
The name of the security group.
Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$
public CreateSecurityGroupRequest withGroupName(String groupName)
The name of the security group.
Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
groupName - The name of the security group.
        Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
public void setVpcId(String vpcId)
[EC2-VPC] The ID of the VPC. Required for EC2-VPC.
vpcId - [EC2-VPC] The ID of the VPC. Required for EC2-VPC.public String getVpcId()
[EC2-VPC] The ID of the VPC. Required for EC2-VPC.
public CreateSecurityGroupRequest withVpcId(String vpcId)
[EC2-VPC] The ID of the VPC. Required for EC2-VPC.
vpcId - [EC2-VPC] The ID of the VPC. Required for EC2-VPC.public Request<CreateSecurityGroupRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateSecurityGroupRequest>public String toString()
toString in class ObjectObject.toString()public CreateSecurityGroupRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.