public TransitGatewayOptions withAutoAcceptSharedAttachments(String autoAcceptSharedAttachments) {
        setAutoAcceptSharedAttachments(autoAcceptSharedAttachments);
        return this;
    }
<p>
Indicates whether attachment requests are automatically accepted.
</p>

@param autoAcceptSharedAttachments
       Indicates whether attachment requests are automatically accepted.
@return Returns a reference to this object so that method calls can be chained together.
@see AutoAcceptSharedAttachmentsValue
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/TransitGatewayOptions.java