com.google.api.services.run.v1alpha1.model.Condition Maven / Gradle / Ivy
/*
* 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: 2018-10-08 17:45:39 UTC)
* on 2019-11-08 at 00:46:02 UTC
* Modify at your own risk.
*/
package com.google.api.services.run.v1alpha1.model;
/**
* Condition defines a generic condition for a Resource
*
* 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 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 Condition extends com.google.api.client.json.GenericJson {
/**
* Optional. Last time the condition transitioned from one status to another.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String lastTransitionTime;
/**
* Optional. Human readable message indicating details about the current status.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String message;
/**
* Optional. One-word CamelCase reason for the condition's last transition.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String reason;
/**
* Optional. How to interpret failures of this condition, one of Error, Warning, Info
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String severity;
/**
* Status of the condition, one of True, False, Unknown.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String status;
/**
* type is used to communicate the status of the reconciliation process. See also:
* https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-
* reporting Types common to all resources include: * "Ready": True when the Resource is ready.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* Optional. Last time the condition transitioned from one status to another.
* @return value or {@code null} for none
*/
public String getLastTransitionTime() {
return lastTransitionTime;
}
/**
* Optional. Last time the condition transitioned from one status to another.
* @param lastTransitionTime lastTransitionTime or {@code null} for none
*/
public Condition setLastTransitionTime(String lastTransitionTime) {
this.lastTransitionTime = lastTransitionTime;
return this;
}
/**
* Optional. Human readable message indicating details about the current status.
* @return value or {@code null} for none
*/
public java.lang.String getMessage() {
return message;
}
/**
* Optional. Human readable message indicating details about the current status.
* @param message message or {@code null} for none
*/
public Condition setMessage(java.lang.String message) {
this.message = message;
return this;
}
/**
* Optional. One-word CamelCase reason for the condition's last transition.
* @return value or {@code null} for none
*/
public java.lang.String getReason() {
return reason;
}
/**
* Optional. One-word CamelCase reason for the condition's last transition.
* @param reason reason or {@code null} for none
*/
public Condition setReason(java.lang.String reason) {
this.reason = reason;
return this;
}
/**
* Optional. How to interpret failures of this condition, one of Error, Warning, Info
* @return value or {@code null} for none
*/
public java.lang.String getSeverity() {
return severity;
}
/**
* Optional. How to interpret failures of this condition, one of Error, Warning, Info
* @param severity severity or {@code null} for none
*/
public Condition setSeverity(java.lang.String severity) {
this.severity = severity;
return this;
}
/**
* Status of the condition, one of True, False, Unknown.
* @return value or {@code null} for none
*/
public java.lang.String getStatus() {
return status;
}
/**
* Status of the condition, one of True, False, Unknown.
* @param status status or {@code null} for none
*/
public Condition setStatus(java.lang.String status) {
this.status = status;
return this;
}
/**
* type is used to communicate the status of the reconciliation process. See also:
* https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-
* reporting Types common to all resources include: * "Ready": True when the Resource is ready.
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* type is used to communicate the status of the reconciliation process. See also:
* https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-
* reporting Types common to all resources include: * "Ready": True when the Resource is ready.
* @param type type or {@code null} for none
*/
public Condition setType(java.lang.String type) {
this.type = type;
return this;
}
@Override
public Condition set(String fieldName, Object value) {
return (Condition) super.set(fieldName, value);
}
@Override
public Condition clone() {
return (Condition) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy