public ModifyDBClusterRequest withAllowMajorVersionUpgrade(Boolean allowMajorVersionUpgrade) {
        setAllowMajorVersionUpgrade(allowMajorVersionUpgrade);
        return this;
    }
<p>
A value that indicates whether upgrades between different major versions are allowed.
</p>
<p>
Constraints: You must set the allow-major-version-upgrade flag when providing an <code>EngineVersion</code>
parameter that uses a different major version than the DB cluster's current version.
</p>

@param allowMajorVersionUpgrade
       A value that indicates whether upgrades between different major versions are allowed.</p>
       <p>
       Constraints: You must set the allow-major-version-upgrade flag when providing an
       <code>EngineVersion</code> parameter that uses a different major version than the DB cluster's current
       version.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-neptune/src/main/java/com/amazonaws/services/neptune/model/ModifyDBClusterRequest.java