Class CreateSecurityGroupRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.CreateSecurityGroupRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateSecurityGroupRequest>
,Serializable
,Cloneable
public class CreateSecurityGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateSecurityGroupRequest>
Contains the parameters for CreateSecurityGroup.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateSecurityGroupRequest()
Default constructor for CreateSecurityGroupRequest object.CreateSecurityGroupRequest(String groupName, String description)
Constructs a new CreateSecurityGroupRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSecurityGroupRequest
clone()
Creates a shallow clone of this request.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.-
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
-
-
-
-
Constructor Detail
-
CreateSecurityGroupRequest
public CreateSecurityGroupRequest()
Default constructor for CreateSecurityGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
CreateSecurityGroupRequest
public CreateSecurityGroupRequest(String groupName, String description)
Constructs a new CreateSecurityGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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 ._-:/()#,@[]+=;{}!$
-
-
Method Detail
-
setGroupName
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 ._-:/()#,@[]+=;{}!$*
- Parameters:
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 ._-:/()#,@[]+=;{}!$
-
getGroupName
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 ._-:/()#,@[]+=;{}!$*
- Returns:
- 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 ._-:/()#,@[]+=;{}!$
-
withGroupName
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 ._-:/()#,@[]+=;{}!$*
- Parameters:
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 ._-:/()#,@[]+=;{}!$*
- 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. 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 ._-:/()#,@[]+=;{}!$*
- Parameters:
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 ._-:/()#,@[]+=;{}!$
-
getDescription
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 ._-:/()#,@[]+=;{}!$*
- Returns:
- 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 ._-:/()#,@[]+=;{}!$
-
withDescription
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 ._-:/()#,@[]+=;{}!$*
- Parameters:
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 ._-:/()#,@[]+=;{}!$*
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcId
public void setVpcId(String vpcId)
[EC2-VPC] The ID of the VPC. Required for EC2-VPC.
- Parameters:
vpcId
- [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
-
getVpcId
public String getVpcId()
[EC2-VPC] The ID of the VPC. Required for EC2-VPC.
- Returns:
- [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
-
withVpcId
public CreateSecurityGroupRequest withVpcId(String vpcId)
[EC2-VPC] The ID of the VPC. Required for EC2-VPC.
- Parameters:
vpcId
- [EC2-VPC] The ID of the VPC. Required for EC2-VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<CreateSecurityGroupRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<CreateSecurityGroupRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateSecurityGroupRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-