Class CreateSecurityGroupRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateSecurityGroupRequest>
,Serializable
,Cloneable
Contains the parameters for CreateSecurityGroup.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for CreateSecurityGroupRequest object.CreateSecurityGroupRequest
(String groupName, String description) Constructs a new CreateSecurityGroupRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
A description for the security group.This method is intended for internal use only.The name of the security group.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
[EC2-VPC] The ID of the VPC.toString()
Returns a string representation of this object; useful for testing and debugging.withDescription
(String description) A description for the security group.withGroupName
(String groupName) The name of the security group.[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 Details
-
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
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 Details
-
setGroupName
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
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
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
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
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
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
[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
[EC2-VPC] The ID of the VPC. Required for EC2-VPC.
- Returns:
- [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
-
withVpcId
[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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-