@java.lang.Override
  public com.google.cloud.memorystore.v1.MaintenancePolicy getMaintenancePolicy() {
    return maintenancePolicy_ == null
        ? com.google.cloud.memorystore.v1.MaintenancePolicy.getDefaultInstance()
        : maintenancePolicy_;
  }
<pre>
Optional. The maintenance policy for the instance. If not provided,
the maintenance event will be performed based on Memorystore
internal rollout schedule.
</pre>

<code>
.google.cloud.memorystore.v1.MaintenancePolicy maintenance_policy = 31 [(.google.api.field_behavior) = OPTIONAL];
</code>

@return The maintenancePolicy.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java