All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.compute.model.Backend Maven / Gradle / Ivy

There is a newer version: v1-rev20250107-2.0.0
Show newest version
/*
 * Copyright 2010 Google Inc.
 *
 * 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://code.google.com/p/google-apis-client-generator/
 * (build: 2016-05-27 16:00:31 UTC)
 * on 2016-07-07 at 07:34:17 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.compute.model;

/**
 * Message containing information of one individual backend.
 *
 * 

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 Compute Engine API. For a detailed explanation see: * http://code.google.com/p/google-http-java-client/wiki/JSON *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class Backend extends com.google.api.client.json.GenericJson { /** * Specifies the balancing mode for this backend. For global HTTP(S) load balancing, the default * is UTILIZATION. Valid values are UTILIZATION and RATE. * * This cannot be used for internal load balancing. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String balancingMode; /** * A multiplier applied to the group's maximum servicing capacity (either UTILIZATION or RATE). * Default value is 1, which means the group will serve up to 100% of its configured CPU or RPS * (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% * of its available CPU or RPS. Valid range is [0.0,1.0]. * * This cannot be used for internal load balancing. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Float capacityScaler; /** * An optional description of this resource. Provide this property when you create the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** * The fully-qualified URL of a zonal Instance Group resource. This instance group defines the * list of instances that serve traffic. Member virtual machine instances from each instance group * must live in the same zone as the instance group itself. No two backends in a backend service * are allowed to use same Instance Group resource. * * Note that you must specify an Instance Group resource using the fully-qualified URL, rather * than a partial URL. * * When the BackendService has load balancing scheme INTERNAL, the instance group must be in a * zone within the same region as the BackendService. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String group; /** * The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION * balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance * must be set. * * This cannot be used for internal load balancing. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxRate; /** * The max requests per second (RPS) that a single backend instance can handle.This is used to * calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, * either maxRate or maxRatePerInstance must be set. * * This cannot be used for internal load balancing. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Float maxRatePerInstance; /** * Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the * group. The default is 0.8. Valid range is [0.0, 1.0]. * * This cannot be used for internal load balancing. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Float maxUtilization; /** * Specifies the balancing mode for this backend. For global HTTP(S) load balancing, the default * is UTILIZATION. Valid values are UTILIZATION and RATE. * * This cannot be used for internal load balancing. * @return value or {@code null} for none */ public java.lang.String getBalancingMode() { return balancingMode; } /** * Specifies the balancing mode for this backend. For global HTTP(S) load balancing, the default * is UTILIZATION. Valid values are UTILIZATION and RATE. * * This cannot be used for internal load balancing. * @param balancingMode balancingMode or {@code null} for none */ public Backend setBalancingMode(java.lang.String balancingMode) { this.balancingMode = balancingMode; return this; } /** * A multiplier applied to the group's maximum servicing capacity (either UTILIZATION or RATE). * Default value is 1, which means the group will serve up to 100% of its configured CPU or RPS * (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% * of its available CPU or RPS. Valid range is [0.0,1.0]. * * This cannot be used for internal load balancing. * @return value or {@code null} for none */ public java.lang.Float getCapacityScaler() { return capacityScaler; } /** * A multiplier applied to the group's maximum servicing capacity (either UTILIZATION or RATE). * Default value is 1, which means the group will serve up to 100% of its configured CPU or RPS * (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% * of its available CPU or RPS. Valid range is [0.0,1.0]. * * This cannot be used for internal load balancing. * @param capacityScaler capacityScaler or {@code null} for none */ public Backend setCapacityScaler(java.lang.Float capacityScaler) { this.capacityScaler = capacityScaler; return this; } /** * An optional description of this resource. Provide this property when you create the resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { return description; } /** * An optional description of this resource. Provide this property when you create the resource. * @param description description or {@code null} for none */ public Backend setDescription(java.lang.String description) { this.description = description; return this; } /** * The fully-qualified URL of a zonal Instance Group resource. This instance group defines the * list of instances that serve traffic. Member virtual machine instances from each instance group * must live in the same zone as the instance group itself. No two backends in a backend service * are allowed to use same Instance Group resource. * * Note that you must specify an Instance Group resource using the fully-qualified URL, rather * than a partial URL. * * When the BackendService has load balancing scheme INTERNAL, the instance group must be in a * zone within the same region as the BackendService. * @return value or {@code null} for none */ public java.lang.String getGroup() { return group; } /** * The fully-qualified URL of a zonal Instance Group resource. This instance group defines the * list of instances that serve traffic. Member virtual machine instances from each instance group * must live in the same zone as the instance group itself. No two backends in a backend service * are allowed to use same Instance Group resource. * * Note that you must specify an Instance Group resource using the fully-qualified URL, rather * than a partial URL. * * When the BackendService has load balancing scheme INTERNAL, the instance group must be in a * zone within the same region as the BackendService. * @param group group or {@code null} for none */ public Backend setGroup(java.lang.String group) { this.group = group; return this; } /** * The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION * balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance * must be set. * * This cannot be used for internal load balancing. * @return value or {@code null} for none */ public java.lang.Integer getMaxRate() { return maxRate; } /** * The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION * balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance * must be set. * * This cannot be used for internal load balancing. * @param maxRate maxRate or {@code null} for none */ public Backend setMaxRate(java.lang.Integer maxRate) { this.maxRate = maxRate; return this; } /** * The max requests per second (RPS) that a single backend instance can handle.This is used to * calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, * either maxRate or maxRatePerInstance must be set. * * This cannot be used for internal load balancing. * @return value or {@code null} for none */ public java.lang.Float getMaxRatePerInstance() { return maxRatePerInstance; } /** * The max requests per second (RPS) that a single backend instance can handle.This is used to * calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, * either maxRate or maxRatePerInstance must be set. * * This cannot be used for internal load balancing. * @param maxRatePerInstance maxRatePerInstance or {@code null} for none */ public Backend setMaxRatePerInstance(java.lang.Float maxRatePerInstance) { this.maxRatePerInstance = maxRatePerInstance; return this; } /** * Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the * group. The default is 0.8. Valid range is [0.0, 1.0]. * * This cannot be used for internal load balancing. * @return value or {@code null} for none */ public java.lang.Float getMaxUtilization() { return maxUtilization; } /** * Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the * group. The default is 0.8. Valid range is [0.0, 1.0]. * * This cannot be used for internal load balancing. * @param maxUtilization maxUtilization or {@code null} for none */ public Backend setMaxUtilization(java.lang.Float maxUtilization) { this.maxUtilization = maxUtilization; return this; } @Override public Backend set(String fieldName, Object value) { return (Backend) super.set(fieldName, value); } @Override public Backend clone() { return (Backend) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy