
com.google.api.services.dataproc.model.NodeGroupOperationMetadata 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.dataproc.model;
/**
* Metadata describing the node group operation.
*
* 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 Dataproc 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 NodeGroupOperationMetadata extends com.google.api.client.json.GenericJson {
/**
* Output only. Cluster UUID associated with the node group operation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String clusterUuid;
/**
* Output only. Short description of operation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* Output only. Labels associated with the operation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map labels;
/**
* Output only. Node group ID for the operation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String nodeGroupId;
/**
* The operation type.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String operationType;
/**
* Output only. Current operation status.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ClusterOperationStatus status;
/**
* Output only. The previous operation status.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List statusHistory;
static {
// hack to force ProGuard to consider ClusterOperationStatus used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(ClusterOperationStatus.class);
}
/**
* Output only. Errors encountered during operation execution.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List warnings;
/**
* Output only. Cluster UUID associated with the node group operation.
* @return value or {@code null} for none
*/
public java.lang.String getClusterUuid() {
return clusterUuid;
}
/**
* Output only. Cluster UUID associated with the node group operation.
* @param clusterUuid clusterUuid or {@code null} for none
*/
public NodeGroupOperationMetadata setClusterUuid(java.lang.String clusterUuid) {
this.clusterUuid = clusterUuid;
return this;
}
/**
* Output only. Short description of operation.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* Output only. Short description of operation.
* @param description description or {@code null} for none
*/
public NodeGroupOperationMetadata setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* Output only. Labels associated with the operation.
* @return value or {@code null} for none
*/
public java.util.Map getLabels() {
return labels;
}
/**
* Output only. Labels associated with the operation.
* @param labels labels or {@code null} for none
*/
public NodeGroupOperationMetadata setLabels(java.util.Map labels) {
this.labels = labels;
return this;
}
/**
* Output only. Node group ID for the operation.
* @return value or {@code null} for none
*/
public java.lang.String getNodeGroupId() {
return nodeGroupId;
}
/**
* Output only. Node group ID for the operation.
* @param nodeGroupId nodeGroupId or {@code null} for none
*/
public NodeGroupOperationMetadata setNodeGroupId(java.lang.String nodeGroupId) {
this.nodeGroupId = nodeGroupId;
return this;
}
/**
* The operation type.
* @return value or {@code null} for none
*/
public java.lang.String getOperationType() {
return operationType;
}
/**
* The operation type.
* @param operationType operationType or {@code null} for none
*/
public NodeGroupOperationMetadata setOperationType(java.lang.String operationType) {
this.operationType = operationType;
return this;
}
/**
* Output only. Current operation status.
* @return value or {@code null} for none
*/
public ClusterOperationStatus getStatus() {
return status;
}
/**
* Output only. Current operation status.
* @param status status or {@code null} for none
*/
public NodeGroupOperationMetadata setStatus(ClusterOperationStatus status) {
this.status = status;
return this;
}
/**
* Output only. The previous operation status.
* @return value or {@code null} for none
*/
public java.util.List getStatusHistory() {
return statusHistory;
}
/**
* Output only. The previous operation status.
* @param statusHistory statusHistory or {@code null} for none
*/
public NodeGroupOperationMetadata setStatusHistory(java.util.List statusHistory) {
this.statusHistory = statusHistory;
return this;
}
/**
* Output only. Errors encountered during operation execution.
* @return value or {@code null} for none
*/
public java.util.List getWarnings() {
return warnings;
}
/**
* Output only. Errors encountered during operation execution.
* @param warnings warnings or {@code null} for none
*/
public NodeGroupOperationMetadata setWarnings(java.util.List warnings) {
this.warnings = warnings;
return this;
}
@Override
public NodeGroupOperationMetadata set(String fieldName, Object value) {
return (NodeGroupOperationMetadata) super.set(fieldName, value);
}
@Override
public NodeGroupOperationMetadata clone() {
return (NodeGroupOperationMetadata) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy