/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.memcache.v1beta2.model;

/**
 * Maintenance settings associated with instance. Allows service producers and end users to assign
 * settings that controls maintenance on this instance.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Cloud Memorystore for Memcached API. For a detailed
 * explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings extends com.google.api.client.json.GenericJson {

  /**
   * Optional. Exclude instance from maintenance. When true, rollout service will not attempt
   * maintenance on the instance. Rollout service will include the instance in reported rollout
   * progress as not attempted.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean exclude;

  /**
   * Optional. The MaintenancePolicies that have been attached to the instance. The key must be of
   * the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy
   * must define the same policy type. For complete details of MaintenancePolicy, please refer to go
   * /cloud-saas-mw-ug. If only the name is needed (like in the deprecated
   * Instance.maintenance_policy_names field) then only populate MaintenancePolicy.name.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.Map<String, MaintenancePolicy> maintenancePolicies;

  /**
   * Optional. Exclude instance from maintenance. When true, rollout service will not attempt
   * maintenance on the instance. Rollout service will include the instance in reported rollout
   * progress as not attempted.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getExclude() {
    return exclude;
  }

  /**
   * Optional. Exclude instance from maintenance. When true, rollout service will not attempt
   * maintenance on the instance. Rollout service will include the instance in reported rollout
   * progress as not attempted.
   * @param exclude exclude or {@code null} for none
   */
  public GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings setExclude(java.lang.Boolean exclude) {
    this.exclude = exclude;
    return this;
  }

  /**
   * Optional. The MaintenancePolicies that have been attached to the instance. The key must be of
   * the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy
   * must define the same policy type. For complete details of MaintenancePolicy, please refer to go
   * /cloud-saas-mw-ug. If only the name is needed (like in the deprecated
   * Instance.maintenance_policy_names field) then only populate MaintenancePolicy.name.
   * @return value or {@code null} for none
   */
  public java.util.Map<String, MaintenancePolicy> getMaintenancePolicies() {
    return maintenancePolicies;
  }

  /**
   * Optional. The MaintenancePolicies that have been attached to the instance. The key must be of
   * the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy
   * must define the same policy type. For complete details of MaintenancePolicy, please refer to go
   * /cloud-saas-mw-ug. If only the name is needed (like in the deprecated
   * Instance.maintenance_policy_names field) then only populate MaintenancePolicy.name.
   * @param maintenancePolicies maintenancePolicies or {@code null} for none
   */
  public GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings setMaintenancePolicies(java.util.Map<String, MaintenancePolicy> maintenancePolicies) {
    this.maintenancePolicies = maintenancePolicies;
    return this;
  }

  @Override
  public GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings set(String fieldName, Object value) {
    return (GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings clone() {
    return (GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings) super.clone();
  }

}
