com.google.api.services.migrationcenter.v1.model.DiscoveryClient 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.migrationcenter.v1.model;
/**
* Represents an installed Migration Center Discovery Client instance.
*
* 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 Migration Center 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 DiscoveryClient extends com.google.api.client.json.GenericJson {
/**
* Output only. Time when the discovery client was first created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;
/**
* Optional. Free text description. Maximum length is 1000 characters.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* Optional. Free text display name. Maximum length is 63 characters.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String displayName;
/**
* Output only. Errors affecting client functionality.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List errors;
/**
* Optional. Client expiration time in UTC. If specified, the backend will not accept new frames
* after this time.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String expireTime;
/**
* Output only. Last heartbeat time. Healthy clients are expected to send heartbeats regularly
* (normally every few minutes).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String heartbeatTime;
/**
* Optional. Labels as key value pairs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map labels;
/**
* Output only. Identifier. Full name of this discovery client.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Required. Service account used by the discovery client for various operation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String serviceAccount;
/**
* Output only. This field is intended for internal use.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String signalsEndpoint;
/**
* Required. Immutable. Full name of the source object associated with this discovery client.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String source;
/**
* Output only. Current state of the discovery client.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String state;
/**
* Optional. Input only. Client time-to-live. If specified, the backend will not accept new frames
* after this time. This field is input only. The derived expiration time is provided as output
* through the `expire_time` field.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String ttl;
/**
* Output only. Time when the discovery client was last updated. This value is not updated by
* heartbeats, to view the last heartbeat time please refer to the `heartbeat_time` field.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateTime;
/**
* Output only. Client version, as reported in recent heartbeat.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String version;
/**
* Output only. Time when the discovery client was first created.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}
/**
* Output only. Time when the discovery client was first created.
* @param createTime createTime or {@code null} for none
*/
public DiscoveryClient setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* Optional. Free text description. Maximum length is 1000 characters.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* Optional. Free text description. Maximum length is 1000 characters.
* @param description description or {@code null} for none
*/
public DiscoveryClient setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* Optional. Free text display name. Maximum length is 63 characters.
* @return value or {@code null} for none
*/
public java.lang.String getDisplayName() {
return displayName;
}
/**
* Optional. Free text display name. Maximum length is 63 characters.
* @param displayName displayName or {@code null} for none
*/
public DiscoveryClient setDisplayName(java.lang.String displayName) {
this.displayName = displayName;
return this;
}
/**
* Output only. Errors affecting client functionality.
* @return value or {@code null} for none
*/
public java.util.List getErrors() {
return errors;
}
/**
* Output only. Errors affecting client functionality.
* @param errors errors or {@code null} for none
*/
public DiscoveryClient setErrors(java.util.List errors) {
this.errors = errors;
return this;
}
/**
* Optional. Client expiration time in UTC. If specified, the backend will not accept new frames
* after this time.
* @return value or {@code null} for none
*/
public String getExpireTime() {
return expireTime;
}
/**
* Optional. Client expiration time in UTC. If specified, the backend will not accept new frames
* after this time.
* @param expireTime expireTime or {@code null} for none
*/
public DiscoveryClient setExpireTime(String expireTime) {
this.expireTime = expireTime;
return this;
}
/**
* Output only. Last heartbeat time. Healthy clients are expected to send heartbeats regularly
* (normally every few minutes).
* @return value or {@code null} for none
*/
public String getHeartbeatTime() {
return heartbeatTime;
}
/**
* Output only. Last heartbeat time. Healthy clients are expected to send heartbeats regularly
* (normally every few minutes).
* @param heartbeatTime heartbeatTime or {@code null} for none
*/
public DiscoveryClient setHeartbeatTime(String heartbeatTime) {
this.heartbeatTime = heartbeatTime;
return this;
}
/**
* Optional. Labels as key value pairs.
* @return value or {@code null} for none
*/
public java.util.Map getLabels() {
return labels;
}
/**
* Optional. Labels as key value pairs.
* @param labels labels or {@code null} for none
*/
public DiscoveryClient setLabels(java.util.Map labels) {
this.labels = labels;
return this;
}
/**
* Output only. Identifier. Full name of this discovery client.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Output only. Identifier. Full name of this discovery client.
* @param name name or {@code null} for none
*/
public DiscoveryClient setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Required. Service account used by the discovery client for various operation.
* @return value or {@code null} for none
*/
public java.lang.String getServiceAccount() {
return serviceAccount;
}
/**
* Required. Service account used by the discovery client for various operation.
* @param serviceAccount serviceAccount or {@code null} for none
*/
public DiscoveryClient setServiceAccount(java.lang.String serviceAccount) {
this.serviceAccount = serviceAccount;
return this;
}
/**
* Output only. This field is intended for internal use.
* @return value or {@code null} for none
*/
public java.lang.String getSignalsEndpoint() {
return signalsEndpoint;
}
/**
* Output only. This field is intended for internal use.
* @param signalsEndpoint signalsEndpoint or {@code null} for none
*/
public DiscoveryClient setSignalsEndpoint(java.lang.String signalsEndpoint) {
this.signalsEndpoint = signalsEndpoint;
return this;
}
/**
* Required. Immutable. Full name of the source object associated with this discovery client.
* @return value or {@code null} for none
*/
public java.lang.String getSource() {
return source;
}
/**
* Required. Immutable. Full name of the source object associated with this discovery client.
* @param source source or {@code null} for none
*/
public DiscoveryClient setSource(java.lang.String source) {
this.source = source;
return this;
}
/**
* Output only. Current state of the discovery client.
* @return value or {@code null} for none
*/
public java.lang.String getState() {
return state;
}
/**
* Output only. Current state of the discovery client.
* @param state state or {@code null} for none
*/
public DiscoveryClient setState(java.lang.String state) {
this.state = state;
return this;
}
/**
* Optional. Input only. Client time-to-live. If specified, the backend will not accept new frames
* after this time. This field is input only. The derived expiration time is provided as output
* through the `expire_time` field.
* @return value or {@code null} for none
*/
public String getTtl() {
return ttl;
}
/**
* Optional. Input only. Client time-to-live. If specified, the backend will not accept new frames
* after this time. This field is input only. The derived expiration time is provided as output
* through the `expire_time` field.
* @param ttl ttl or {@code null} for none
*/
public DiscoveryClient setTtl(String ttl) {
this.ttl = ttl;
return this;
}
/**
* Output only. Time when the discovery client was last updated. This value is not updated by
* heartbeats, to view the last heartbeat time please refer to the `heartbeat_time` field.
* @return value or {@code null} for none
*/
public String getUpdateTime() {
return updateTime;
}
/**
* Output only. Time when the discovery client was last updated. This value is not updated by
* heartbeats, to view the last heartbeat time please refer to the `heartbeat_time` field.
* @param updateTime updateTime or {@code null} for none
*/
public DiscoveryClient setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
/**
* Output only. Client version, as reported in recent heartbeat.
* @return value or {@code null} for none
*/
public java.lang.String getVersion() {
return version;
}
/**
* Output only. Client version, as reported in recent heartbeat.
* @param version version or {@code null} for none
*/
public DiscoveryClient setVersion(java.lang.String version) {
this.version = version;
return this;
}
@Override
public DiscoveryClient set(String fieldName, Object value) {
return (DiscoveryClient) super.set(fieldName, value);
}
@Override
public DiscoveryClient clone() {
return (DiscoveryClient) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy