@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSecurityGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateSecurityGroupRequest>
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.
|
List<TagSpecification> |
getTagSpecifications()
The tags to assign to the security group.
|
String |
getVpcId()
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 |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the security group.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
String |
toString()
Returns a string representation of this object.
|
CreateSecurityGroupRequest |
withDescription(String description)
A description for the security group.
|
CreateSecurityGroupRequest |
withGroupName(String groupName)
The name of the security group.
|
CreateSecurityGroupRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the security group.
|
CreateSecurityGroupRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the security group.
|
CreateSecurityGroupRequest |
withVpcId(String vpcId)
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, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public CreateSecurityGroupRequest()
public CreateSecurityGroupRequest(String groupName, String description)
groupName
- The name of the security group.
Constraints: Up to 255 characters in length. Cannot start with sg-
.
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
description
- A description for the security group.
Constraints: Up to 255 characters in length
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$
public void setDescription(String description)
A description for the security group.
Constraints: Up to 255 characters in length
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
description
- A description for the security group.
Constraints: Up to 255 characters in length
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$
public String getDescription()
A description for the security group.
Constraints: Up to 255 characters in length
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
Constraints: Up to 255 characters in length
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$
public CreateSecurityGroupRequest withDescription(String description)
A description for the security group.
Constraints: Up to 255 characters in length
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
description
- A description for the security group.
Constraints: Up to 255 characters in length
Valid characters: 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. Cannot start with sg-
.
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
groupName
- The name of the security group.
Constraints: Up to 255 characters in length. Cannot start with sg-
.
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$
public String getGroupName()
The name of the security group.
Constraints: Up to 255 characters in length. Cannot start with sg-
.
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
Constraints: Up to 255 characters in length. Cannot start with sg-
.
Valid characters: 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. Cannot start with sg-
.
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
groupName
- The name of the security group.
Constraints: Up to 255 characters in length. Cannot start with sg-
.
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
public void setVpcId(String vpcId)
The ID of the VPC. Required for a nondefault VPC.
vpcId
- The ID of the VPC. Required for a nondefault VPC.public String getVpcId()
The ID of the VPC. Required for a nondefault VPC.
public CreateSecurityGroupRequest withVpcId(String vpcId)
The ID of the VPC. Required for a nondefault VPC.
vpcId
- The ID of the VPC. Required for a nondefault VPC.public List<TagSpecification> getTagSpecifications()
The tags to assign to the security group.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the security group.
tagSpecifications
- The tags to assign to the security group.public CreateSecurityGroupRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the security group.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to assign to the security group.public CreateSecurityGroupRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the security group.
tagSpecifications
- The tags to assign to the security group.public Request<CreateSecurityGroupRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateSecurityGroupRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateSecurityGroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()