Class CreateSecurityGroupRequest

    • 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.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object