com.google.api.services.bigqueryreservation.v1.model.Autoscale 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.bigqueryreservation.v1.model;
/**
* Auto scaling settings.
*
* 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 BigQuery Reservation 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 Autoscale extends com.google.api.client.json.GenericJson {
/**
* Output only. The slot capacity added to this reservation when autoscale happens. Will be
* between [0, max_slots]. Note: after users reduce max_slots, it may take a while before it can
* be propagated, so current_slots may stay in the original value and could be larger than
* max_slots for that brief period (less than one minute)
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long currentSlots;
/**
* Number of slots to be scaled when needed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long maxSlots;
/**
* Output only. The slot capacity added to this reservation when autoscale happens. Will be
* between [0, max_slots]. Note: after users reduce max_slots, it may take a while before it can
* be propagated, so current_slots may stay in the original value and could be larger than
* max_slots for that brief period (less than one minute)
* @return value or {@code null} for none
*/
public java.lang.Long getCurrentSlots() {
return currentSlots;
}
/**
* Output only. The slot capacity added to this reservation when autoscale happens. Will be
* between [0, max_slots]. Note: after users reduce max_slots, it may take a while before it can
* be propagated, so current_slots may stay in the original value and could be larger than
* max_slots for that brief period (less than one minute)
* @param currentSlots currentSlots or {@code null} for none
*/
public Autoscale setCurrentSlots(java.lang.Long currentSlots) {
this.currentSlots = currentSlots;
return this;
}
/**
* Number of slots to be scaled when needed.
* @return value or {@code null} for none
*/
public java.lang.Long getMaxSlots() {
return maxSlots;
}
/**
* Number of slots to be scaled when needed.
* @param maxSlots maxSlots or {@code null} for none
*/
public Autoscale setMaxSlots(java.lang.Long maxSlots) {
this.maxSlots = maxSlots;
return this;
}
@Override
public Autoscale set(String fieldName, Object value) {
return (Autoscale) super.set(fieldName, value);
}
@Override
public Autoscale clone() {
return (Autoscale) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy