com.google.api.services.tpu.v2.model.QueueingPolicy 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.tpu.v2.model;
/**
* Defines the policy of the QueuedRequest.
*
* 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 QueueingPolicy extends com.google.api.client.json.GenericJson {
/**
* Optional. A relative time after which resources may be created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String validAfterDuration;
/**
* Optional. An absolute time after which resources may be created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String validAfterTime;
/**
* Optional. An absolute time interval within which resources may be created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Interval validInterval;
/**
* Optional. A relative time after which resources should not be created. If the request cannot be
* fulfilled by this time the request will be failed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String validUntilDuration;
/**
* Optional. An absolute time after which resources should not be created. If the request cannot
* be fulfilled by this time the request will be failed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String validUntilTime;
/**
* Optional. A relative time after which resources may be created.
* @return value or {@code null} for none
*/
public String getValidAfterDuration() {
return validAfterDuration;
}
/**
* Optional. A relative time after which resources may be created.
* @param validAfterDuration validAfterDuration or {@code null} for none
*/
public QueueingPolicy setValidAfterDuration(String validAfterDuration) {
this.validAfterDuration = validAfterDuration;
return this;
}
/**
* Optional. An absolute time after which resources may be created.
* @return value or {@code null} for none
*/
public String getValidAfterTime() {
return validAfterTime;
}
/**
* Optional. An absolute time after which resources may be created.
* @param validAfterTime validAfterTime or {@code null} for none
*/
public QueueingPolicy setValidAfterTime(String validAfterTime) {
this.validAfterTime = validAfterTime;
return this;
}
/**
* Optional. An absolute time interval within which resources may be created.
* @return value or {@code null} for none
*/
public Interval getValidInterval() {
return validInterval;
}
/**
* Optional. An absolute time interval within which resources may be created.
* @param validInterval validInterval or {@code null} for none
*/
public QueueingPolicy setValidInterval(Interval validInterval) {
this.validInterval = validInterval;
return this;
}
/**
* Optional. A relative time after which resources should not be created. If the request cannot be
* fulfilled by this time the request will be failed.
* @return value or {@code null} for none
*/
public String getValidUntilDuration() {
return validUntilDuration;
}
/**
* Optional. A relative time after which resources should not be created. If the request cannot be
* fulfilled by this time the request will be failed.
* @param validUntilDuration validUntilDuration or {@code null} for none
*/
public QueueingPolicy setValidUntilDuration(String validUntilDuration) {
this.validUntilDuration = validUntilDuration;
return this;
}
/**
* Optional. An absolute time after which resources should not be created. If the request cannot
* be fulfilled by this time the request will be failed.
* @return value or {@code null} for none
*/
public String getValidUntilTime() {
return validUntilTime;
}
/**
* Optional. An absolute time after which resources should not be created. If the request cannot
* be fulfilled by this time the request will be failed.
* @param validUntilTime validUntilTime or {@code null} for none
*/
public QueueingPolicy setValidUntilTime(String validUntilTime) {
this.validUntilTime = validUntilTime;
return this;
}
@Override
public QueueingPolicy set(String fieldName, Object value) {
return (QueueingPolicy) super.set(fieldName, value);
}
@Override
public QueueingPolicy clone() {
return (QueueingPolicy) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy