public class CreateSecurityGroupRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateSecurityGroupRequest>
Contains the parameters for CreateSecurityGroup.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
A description for the security group.
|
private java.lang.String |
groupName
The name of the security group.
|
private java.lang.String |
vpcId
[EC2-VPC] The ID of the VPC.
|
NOOP
Constructor and Description |
---|
CreateSecurityGroupRequest()
Default constructor for CreateSecurityGroupRequest object.
|
CreateSecurityGroupRequest(java.lang.String groupName,
java.lang.String description)
Constructs a new CreateSecurityGroupRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateSecurityGroupRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A description for the security group.
|
Request<CreateSecurityGroupRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getGroupName()
The name of the security group.
|
java.lang.String |
getVpcId()
[EC2-VPC] The ID of the VPC.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
A description for the security group.
|
void |
setGroupName(java.lang.String groupName)
The name of the security group.
|
void |
setVpcId(java.lang.String vpcId)
[EC2-VPC] The ID of the VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSecurityGroupRequest |
withDescription(java.lang.String description)
A description for the security group.
|
CreateSecurityGroupRequest |
withGroupName(java.lang.String groupName)
The name of the security group.
|
CreateSecurityGroupRequest |
withVpcId(java.lang.String vpcId)
[EC2-VPC] The ID of the VPC.
|
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
private java.lang.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 ._-:/()#,@[]+=;{}!$*
private java.lang.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 ._-:/()#,@[]+=;{}!$*
private java.lang.String vpcId
[EC2-VPC] The ID of the VPC. Required for EC2-VPC.
public CreateSecurityGroupRequest()
public CreateSecurityGroupRequest(java.lang.String groupName, java.lang.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 setGroupName(java.lang.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 java.lang.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(java.lang.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 setDescription(java.lang.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 java.lang.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(java.lang.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 setVpcId(java.lang.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 java.lang.String getVpcId()
[EC2-VPC] The ID of the VPC. Required for EC2-VPC.
public CreateSecurityGroupRequest withVpcId(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateSecurityGroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()