public SoftwareUpdatePreferences withAutomaticUpdatePolicy(AutomaticUpdatePolicy automaticUpdatePolicy) {
        this.automaticUpdatePolicy = automaticUpdatePolicy.toString();
        return this;
    }
<p>
Indicates the automatic update policy for a gateway.
</p>
<p>
<code>ALL_VERSIONS</code> - Enables regular gateway maintenance updates.
</p>
<p>
<code>EMERGENCY_VERSIONS_ONLY</code> - Disables regular gateway maintenance updates.
</p>

@param automaticUpdatePolicy
       Indicates the automatic update policy for a gateway.</p>
       <p>
       <code>ALL_VERSIONS</code> - Enables regular gateway maintenance updates.
       </p>
       <p>
       <code>EMERGENCY_VERSIONS_ONLY</code> - Disables regular gateway maintenance updates.
@return Returns a reference to this object so that method calls can be chained together.
@see AutomaticUpdatePolicy
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/SoftwareUpdatePreferences.java