com.google.api.services.dataproc.v1beta2.model.WorkflowMetadata 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://github.com/google/apis-client-generator/
* (build: 2018-05-04 17:28:03 UTC)
* on 2018-09-12 at 16:10:30 UTC
* Modify at your own risk.
*/
package com.google.api.services.dataproc.v1beta2.model;
/**
* A Cloud Dataproc workflow template 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 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 WorkflowMetadata extends com.google.api.client.json.GenericJson {
/**
* Output only. The name of the managed cluster.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String clusterName;
/**
* Output only. The create cluster operation metadata.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ClusterOperation createCluster;
/**
* Output only. The delete cluster operation metadata.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ClusterOperation deleteCluster;
/**
* Output only. The workflow graph.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private WorkflowGraph graph;
/**
* Map from parameter names to values that were used for those parameters.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map parameters;
/**
* Output only. The workflow state.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String state;
/**
* Output only. The "resource name" of the template.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String template;
/**
* Output only. The version of template at the time of workflow instantiation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer version;
/**
* Output only. The name of the managed cluster.
* @return value or {@code null} for none
*/
public java.lang.String getClusterName() {
return clusterName;
}
/**
* Output only. The name of the managed cluster.
* @param clusterName clusterName or {@code null} for none
*/
public WorkflowMetadata setClusterName(java.lang.String clusterName) {
this.clusterName = clusterName;
return this;
}
/**
* Output only. The create cluster operation metadata.
* @return value or {@code null} for none
*/
public ClusterOperation getCreateCluster() {
return createCluster;
}
/**
* Output only. The create cluster operation metadata.
* @param createCluster createCluster or {@code null} for none
*/
public WorkflowMetadata setCreateCluster(ClusterOperation createCluster) {
this.createCluster = createCluster;
return this;
}
/**
* Output only. The delete cluster operation metadata.
* @return value or {@code null} for none
*/
public ClusterOperation getDeleteCluster() {
return deleteCluster;
}
/**
* Output only. The delete cluster operation metadata.
* @param deleteCluster deleteCluster or {@code null} for none
*/
public WorkflowMetadata setDeleteCluster(ClusterOperation deleteCluster) {
this.deleteCluster = deleteCluster;
return this;
}
/**
* Output only. The workflow graph.
* @return value or {@code null} for none
*/
public WorkflowGraph getGraph() {
return graph;
}
/**
* Output only. The workflow graph.
* @param graph graph or {@code null} for none
*/
public WorkflowMetadata setGraph(WorkflowGraph graph) {
this.graph = graph;
return this;
}
/**
* Map from parameter names to values that were used for those parameters.
* @return value or {@code null} for none
*/
public java.util.Map getParameters() {
return parameters;
}
/**
* Map from parameter names to values that were used for those parameters.
* @param parameters parameters or {@code null} for none
*/
public WorkflowMetadata setParameters(java.util.Map parameters) {
this.parameters = parameters;
return this;
}
/**
* Output only. The workflow state.
* @return value or {@code null} for none
*/
public java.lang.String getState() {
return state;
}
/**
* Output only. The workflow state.
* @param state state or {@code null} for none
*/
public WorkflowMetadata setState(java.lang.String state) {
this.state = state;
return this;
}
/**
* Output only. The "resource name" of the template.
* @return value or {@code null} for none
*/
public java.lang.String getTemplate() {
return template;
}
/**
* Output only. The "resource name" of the template.
* @param template template or {@code null} for none
*/
public WorkflowMetadata setTemplate(java.lang.String template) {
this.template = template;
return this;
}
/**
* Output only. The version of template at the time of workflow instantiation.
* @return value or {@code null} for none
*/
public java.lang.Integer getVersion() {
return version;
}
/**
* Output only. The version of template at the time of workflow instantiation.
* @param version version or {@code null} for none
*/
public WorkflowMetadata setVersion(java.lang.Integer version) {
this.version = version;
return this;
}
@Override
public WorkflowMetadata set(String fieldName, Object value) {
return (WorkflowMetadata) super.set(fieldName, value);
}
@Override
public WorkflowMetadata clone() {
return (WorkflowMetadata) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy