public DescribeImageAttributeRequest withAttribute(String attribute) {
        setAttribute(attribute);
        return this;
    }
<p>
The AMI attribute.
</p>
<p>
<b>Note</b>: The <code>blockDeviceMapping</code> attribute is deprecated. Using this attribute returns the
<code>Client.AuthFailure</code> error. To get information about the block device mappings for an AMI, use the
<a>DescribeImages</a> action.
</p>

@param attribute
       The AMI attribute.</p>
       <p>
       <b>Note</b>: The <code>blockDeviceMapping</code> attribute is deprecated. Using this attribute returns the
       <code>Client.AuthFailure</code> error. To get information about the block device mappings for an AMI, use
       the <a>DescribeImages</a> action.
@return Returns a reference to this object so that method calls can be chained together.
@see ImageAttributeName
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeImageAttributeRequest.java