com.google.api.services.tpu.v2.model.QueuedResource Maven / Gradle / Ivy
The 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.tpu.v2.model;
/**
* A QueuedResource represents a request for resources that will be placed in a queue and fulfilled
* when the necessary resources are available.
*
* 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 TPU 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 QueuedResource extends com.google.api.client.json.GenericJson {
/**
* Output only. The time when the QueuedResource was created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;
/**
* Optional. The Guaranteed tier
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Guaranteed guaranteed;
/**
* Output only. Immutable. The name of the QueuedResource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Optional. The queueing policy of the QueuedRequest.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private QueueingPolicy queueingPolicy;
/**
* Optional. Name of the reservation in which the resource should be provisioned. Format:
* projects/{project}/locations/{zone}/reservations/{reservation}
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String reservationName;
/**
* Optional. The Spot tier.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Spot spot;
/**
* Output only. State of the QueuedResource request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private QueuedResourceState state;
/**
* Optional. Defines a TPU resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Tpu tpu;
/**
* Output only. The time when the QueuedResource was created.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}
/**
* Output only. The time when the QueuedResource was created.
* @param createTime createTime or {@code null} for none
*/
public QueuedResource setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* Optional. The Guaranteed tier
* @return value or {@code null} for none
*/
public Guaranteed getGuaranteed() {
return guaranteed;
}
/**
* Optional. The Guaranteed tier
* @param guaranteed guaranteed or {@code null} for none
*/
public QueuedResource setGuaranteed(Guaranteed guaranteed) {
this.guaranteed = guaranteed;
return this;
}
/**
* Output only. Immutable. The name of the QueuedResource.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Output only. Immutable. The name of the QueuedResource.
* @param name name or {@code null} for none
*/
public QueuedResource setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Optional. The queueing policy of the QueuedRequest.
* @return value or {@code null} for none
*/
public QueueingPolicy getQueueingPolicy() {
return queueingPolicy;
}
/**
* Optional. The queueing policy of the QueuedRequest.
* @param queueingPolicy queueingPolicy or {@code null} for none
*/
public QueuedResource setQueueingPolicy(QueueingPolicy queueingPolicy) {
this.queueingPolicy = queueingPolicy;
return this;
}
/**
* Optional. Name of the reservation in which the resource should be provisioned. Format:
* projects/{project}/locations/{zone}/reservations/{reservation}
* @return value or {@code null} for none
*/
public java.lang.String getReservationName() {
return reservationName;
}
/**
* Optional. Name of the reservation in which the resource should be provisioned. Format:
* projects/{project}/locations/{zone}/reservations/{reservation}
* @param reservationName reservationName or {@code null} for none
*/
public QueuedResource setReservationName(java.lang.String reservationName) {
this.reservationName = reservationName;
return this;
}
/**
* Optional. The Spot tier.
* @return value or {@code null} for none
*/
public Spot getSpot() {
return spot;
}
/**
* Optional. The Spot tier.
* @param spot spot or {@code null} for none
*/
public QueuedResource setSpot(Spot spot) {
this.spot = spot;
return this;
}
/**
* Output only. State of the QueuedResource request.
* @return value or {@code null} for none
*/
public QueuedResourceState getState() {
return state;
}
/**
* Output only. State of the QueuedResource request.
* @param state state or {@code null} for none
*/
public QueuedResource setState(QueuedResourceState state) {
this.state = state;
return this;
}
/**
* Optional. Defines a TPU resource.
* @return value or {@code null} for none
*/
public Tpu getTpu() {
return tpu;
}
/**
* Optional. Defines a TPU resource.
* @param tpu tpu or {@code null} for none
*/
public QueuedResource setTpu(Tpu tpu) {
this.tpu = tpu;
return this;
}
@Override
public QueuedResource set(String fieldName, Object value) {
return (QueuedResource) super.set(fieldName, value);
}
@Override
public QueuedResource clone() {
return (QueuedResource) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy