Class ResetImageAttributeRequest

    • Constructor Detail

      • ResetImageAttributeRequest

        public ResetImageAttributeRequest()
        Default constructor for ResetImageAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
      • ResetImageAttributeRequest

        public ResetImageAttributeRequest​(String imageId,
                                          String attribute)
        Constructs a new ResetImageAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
        Parameters:
        imageId - The ID of the AMI.
        attribute - The attribute to reset (currently you can only reset the launch permission attribute).
      • ResetImageAttributeRequest

        public ResetImageAttributeRequest​(String imageId,
                                          ResetImageAttributeName attribute)
        Constructs a new ResetImageAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
        Parameters:
        imageId - The ID of the AMI.
        attribute - The attribute to reset (currently you can only reset the launch permission attribute).
    • Method Detail

      • setImageId

        public void setImageId​(String imageId)

        The ID of the AMI.

        Parameters:
        imageId - The ID of the AMI.
      • getImageId

        public String getImageId()

        The ID of the AMI.

        Returns:
        The ID of the AMI.
      • withImageId

        public ResetImageAttributeRequest withImageId​(String imageId)

        The ID of the AMI.

        Parameters:
        imageId - The ID of the AMI.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAttribute

        public void setAttribute​(String attribute)

        The attribute to reset (currently you can only reset the launch permission attribute).

        Parameters:
        attribute - The attribute to reset (currently you can only reset the launch permission attribute).
        See Also:
        ResetImageAttributeName
      • getAttribute

        public String getAttribute()

        The attribute to reset (currently you can only reset the launch permission attribute).

        Returns:
        The attribute to reset (currently you can only reset the launch permission attribute).
        See Also:
        ResetImageAttributeName
      • withAttribute

        public ResetImageAttributeRequest withAttribute​(String attribute)

        The attribute to reset (currently you can only reset the launch permission attribute).

        Parameters:
        attribute - The attribute to reset (currently you can only reset the launch permission attribute).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResetImageAttributeName
      • setAttribute

        public void setAttribute​(ResetImageAttributeName attribute)

        The attribute to reset (currently you can only reset the launch permission attribute).

        Parameters:
        attribute - The attribute to reset (currently you can only reset the launch permission attribute).
        See Also:
        ResetImageAttributeName
      • withAttribute

        public ResetImageAttributeRequest withAttribute​(ResetImageAttributeName attribute)

        The attribute to reset (currently you can only reset the launch permission attribute).

        Parameters:
        attribute - The attribute to reset (currently you can only reset the launch permission attribute).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResetImageAttributeName
      • 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