Class ClassicLinkInstance

    • Constructor Detail

      • ClassicLinkInstance

        public ClassicLinkInstance()
    • Method Detail

      • setInstanceId

        public void setInstanceId​(String instanceId)

        The ID of the instance.

        Parameters:
        instanceId - The ID of the instance.
      • getInstanceId

        public String getInstanceId()

        The ID of the instance.

        Returns:
        The ID of the instance.
      • withInstanceId

        public ClassicLinkInstance withInstanceId​(String instanceId)

        The ID of the instance.

        Parameters:
        instanceId - The ID of the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setVpcId

        public void setVpcId​(String vpcId)

        The ID of the VPC.

        Parameters:
        vpcId - The ID of the VPC.
      • getVpcId

        public String getVpcId()

        The ID of the VPC.

        Returns:
        The ID of the VPC.
      • withVpcId

        public ClassicLinkInstance withVpcId​(String vpcId)

        The ID of the VPC.

        Parameters:
        vpcId - The ID of the VPC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getGroups

        public List<GroupIdentifier> getGroups()

        A list of security groups.

        Returns:
        A list of security groups.
      • setGroups

        public void setGroups​(Collection<GroupIdentifier> groups)

        A list of security groups.

        Parameters:
        groups - A list of security groups.
      • withGroups

        public ClassicLinkInstance withGroups​(Collection<GroupIdentifier> groups)

        A list of security groups.

        Parameters:
        groups - A list of security groups.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getTags

        public List<Tag> getTags()

        Any tags assigned to the instance.

        Returns:
        Any tags assigned to the instance.
      • setTags

        public void setTags​(Collection<Tag> tags)

        Any tags assigned to the instance.

        Parameters:
        tags - Any tags assigned to the instance.
      • withTags

        public ClassicLinkInstance withTags​(Tag... tags)

        Any tags assigned to the instance.

        NOTE: This method appends the values to the existing list (if any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing values.

        Parameters:
        tags - Any tags assigned to the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withTags

        public ClassicLinkInstance withTags​(Collection<Tag> tags)

        Any tags assigned to the instance.

        Parameters:
        tags - Any tags assigned to the instance.
        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