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

com.google.api.services.run.v2.model.GoogleCloudRunV2TrafficTargetStatus Maven / Gradle / Ivy

There is a newer version: v2-rev20241213-2.0.0
Show newest version
/*
 * 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.run.v2.model;

/**
 * Represents the observed state of a single `TrafficTarget` entry.
 *
 * 

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 Run Admin 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 GoogleCloudRunV2TrafficTargetStatus extends com.google.api.client.json.GenericJson { /** * Specifies percent of the traffic to this Revision. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer percent; /** * Revision to which this traffic is sent. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String revision; /** * Indicates the string used in the URI to exclusively reference this target. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String tag; /** * The allocation type for this traffic target. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String type; /** * Displays the target URI. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String uri; /** * Specifies percent of the traffic to this Revision. * @return value or {@code null} for none */ public java.lang.Integer getPercent() { return percent; } /** * Specifies percent of the traffic to this Revision. * @param percent percent or {@code null} for none */ public GoogleCloudRunV2TrafficTargetStatus setPercent(java.lang.Integer percent) { this.percent = percent; return this; } /** * Revision to which this traffic is sent. * @return value or {@code null} for none */ public java.lang.String getRevision() { return revision; } /** * Revision to which this traffic is sent. * @param revision revision or {@code null} for none */ public GoogleCloudRunV2TrafficTargetStatus setRevision(java.lang.String revision) { this.revision = revision; return this; } /** * Indicates the string used in the URI to exclusively reference this target. * @return value or {@code null} for none */ public java.lang.String getTag() { return tag; } /** * Indicates the string used in the URI to exclusively reference this target. * @param tag tag or {@code null} for none */ public GoogleCloudRunV2TrafficTargetStatus setTag(java.lang.String tag) { this.tag = tag; return this; } /** * The allocation type for this traffic target. * @return value or {@code null} for none */ public java.lang.String getType() { return type; } /** * The allocation type for this traffic target. * @param type type or {@code null} for none */ public GoogleCloudRunV2TrafficTargetStatus setType(java.lang.String type) { this.type = type; return this; } /** * Displays the target URI. * @return value or {@code null} for none */ public java.lang.String getUri() { return uri; } /** * Displays the target URI. * @param uri uri or {@code null} for none */ public GoogleCloudRunV2TrafficTargetStatus setUri(java.lang.String uri) { this.uri = uri; return this; } @Override public GoogleCloudRunV2TrafficTargetStatus set(String fieldName, Object value) { return (GoogleCloudRunV2TrafficTargetStatus) super.set(fieldName, value); } @Override public GoogleCloudRunV2TrafficTargetStatus clone() { return (GoogleCloudRunV2TrafficTargetStatus) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy