com.google.api.services.file.v1.model.GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings Maven / Gradle / Ivy
/*
* 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.file.v1.model;
/**
* Maintenance settings associated with instance. Allows service producers and end users to assign
* settings that controls maintenance on this instance.
*
* 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 Filestore API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @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. If the update call is triggered from rollback, set the value as true.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean isRollback;
/**
* 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 details, please refer to go/mr-user-guide. Should not be
* set if maintenance_policy_names is set. If only the name is needed, then only populate
* MaintenancePolicy.name.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map 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. If the update call is triggered from rollback, set the value as true.
* @return value or {@code null} for none
*/
public java.lang.Boolean getIsRollback() {
return isRollback;
}
/**
* Optional. If the update call is triggered from rollback, set the value as true.
* @param isRollback isRollback or {@code null} for none
*/
public GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings setIsRollback(java.lang.Boolean isRollback) {
this.isRollback = isRollback;
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 details, please refer to go/mr-user-guide. Should not be
* set if maintenance_policy_names is set. If only the name is needed, then only populate
* MaintenancePolicy.name.
* @return value or {@code null} for none
*/
public java.util.Map 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 details, please refer to go/mr-user-guide. Should not be
* set if maintenance_policy_names is set. If only the name is needed, then only populate
* MaintenancePolicy.name.
* @param maintenancePolicies maintenancePolicies or {@code null} for none
*/
public GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings setMaintenancePolicies(java.util.Map 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();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy