com.google.api.services.osconfig.v1.model.PatchJobInstanceDetails 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.osconfig.v1.model;
/**
* Patch details for a VM instance. For more information about reviewing VM instance details, see
* [Listing all VM instance details for a specific patch
* job](https://cloud.google.com/compute/docs/os-patch-management/manage-patch-jobs#list-instance-
* details).
*
* 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 OS Config 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 PatchJobInstanceDetails extends com.google.api.client.json.GenericJson {
/**
* The number of times the agent that the agent attempts to apply the patch.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long attemptCount;
/**
* If the patch fails, this field provides the reason.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String failureReason;
/**
* The unique identifier for the instance. This identifier is defined by the server.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String instanceSystemId;
/**
* The instance name in the form `projects/zones/instances`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Current state of instance patch.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String state;
/**
* The number of times the agent that the agent attempts to apply the patch.
* @return value or {@code null} for none
*/
public java.lang.Long getAttemptCount() {
return attemptCount;
}
/**
* The number of times the agent that the agent attempts to apply the patch.
* @param attemptCount attemptCount or {@code null} for none
*/
public PatchJobInstanceDetails setAttemptCount(java.lang.Long attemptCount) {
this.attemptCount = attemptCount;
return this;
}
/**
* If the patch fails, this field provides the reason.
* @return value or {@code null} for none
*/
public java.lang.String getFailureReason() {
return failureReason;
}
/**
* If the patch fails, this field provides the reason.
* @param failureReason failureReason or {@code null} for none
*/
public PatchJobInstanceDetails setFailureReason(java.lang.String failureReason) {
this.failureReason = failureReason;
return this;
}
/**
* The unique identifier for the instance. This identifier is defined by the server.
* @return value or {@code null} for none
*/
public java.lang.String getInstanceSystemId() {
return instanceSystemId;
}
/**
* The unique identifier for the instance. This identifier is defined by the server.
* @param instanceSystemId instanceSystemId or {@code null} for none
*/
public PatchJobInstanceDetails setInstanceSystemId(java.lang.String instanceSystemId) {
this.instanceSystemId = instanceSystemId;
return this;
}
/**
* The instance name in the form `projects/zones/instances`
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The instance name in the form `projects/zones/instances`
* @param name name or {@code null} for none
*/
public PatchJobInstanceDetails setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Current state of instance patch.
* @return value or {@code null} for none
*/
public java.lang.String getState() {
return state;
}
/**
* Current state of instance patch.
* @param state state or {@code null} for none
*/
public PatchJobInstanceDetails setState(java.lang.String state) {
this.state = state;
return this;
}
@Override
public PatchJobInstanceDetails set(String fieldName, Object value) {
return (PatchJobInstanceDetails) super.set(fieldName, value);
}
@Override
public PatchJobInstanceDetails clone() {
return (PatchJobInstanceDetails) super.clone();
}
}