public DomainMaintenanceDetails withAction(String action) {
        setAction(action);
        return this;
    }
<p>
The name of the action.
</p>

@param action
       The name of the action.
@return Returns a reference to this object so that method calls can be chained together.
@see MaintenanceType
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/DomainMaintenanceDetails.java