All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.dataproc.v1beta2.model.WorkflowTemplate 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 WorkflowTemplate extends com.google.api.client.json.GenericJson { /** * Output only. The time template was created. * The value may be {@code null}. */ @com.google.api.client.util.Key private String createTime; /** * Required. The template id.The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist * of between 3 and 50 characters. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String id; /** * Required. The Directed Acyclic Graph of Jobs to submit. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List jobs; /** * Optional. The labels to associate with this template. These labels will be propagated to all * jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, * and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, * but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 * (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a * template. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map labels; /** * Output only. The "resource name" of the template, as described in * https://cloud.google.com/apis/design/resource_names of the form * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Optional. Template parameters whose values are substituted into the template. Values for * parameters must be provided when the template is instantiated. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List parameters; /** * Required. WorkflowTemplate scheduling information. * The value may be {@code null}. */ @com.google.api.client.util.Key private WorkflowTemplatePlacement placement; /** * Output only. The time template was last updated. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** * Optional. Used to perform a consistent read-modify-write.This field should be left blank for a * CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must * match the current server version. A typical update template flow would fetch the current * template with a GetWorkflowTemplate request, which will return the current template with the * version field filled in with the current server version. The user updates other fields in the * template, then returns it as part of the UpdateWorkflowTemplate request. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer version; /** * Output only. The time template was created. * @return value or {@code null} for none */ public String getCreateTime() { return createTime; } /** * Output only. The time template was created. * @param createTime createTime or {@code null} for none */ public WorkflowTemplate setCreateTime(String createTime) { this.createTime = createTime; return this; } /** * Required. The template id.The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist * of between 3 and 50 characters. * @return value or {@code null} for none */ public java.lang.String getId() { return id; } /** * Required. The template id.The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist * of between 3 and 50 characters. * @param id id or {@code null} for none */ public WorkflowTemplate setId(java.lang.String id) { this.id = id; return this; } /** * Required. The Directed Acyclic Graph of Jobs to submit. * @return value or {@code null} for none */ public java.util.List getJobs() { return jobs; } /** * Required. The Directed Acyclic Graph of Jobs to submit. * @param jobs jobs or {@code null} for none */ public WorkflowTemplate setJobs(java.util.List jobs) { this.jobs = jobs; return this; } /** * Optional. The labels to associate with this template. These labels will be propagated to all * jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, * and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, * but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 * (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a * template. * @return value or {@code null} for none */ public java.util.Map getLabels() { return labels; } /** * Optional. The labels to associate with this template. These labels will be propagated to all * jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, * and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, * but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 * (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a * template. * @param labels labels or {@code null} for none */ public WorkflowTemplate setLabels(java.util.Map labels) { this.labels = labels; return this; } /** * Output only. The "resource name" of the template, as described in * https://cloud.google.com/apis/design/resource_names of the form * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Output only. The "resource name" of the template, as described in * https://cloud.google.com/apis/design/resource_names of the form * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} * @param name name or {@code null} for none */ public WorkflowTemplate setName(java.lang.String name) { this.name = name; return this; } /** * Optional. Template parameters whose values are substituted into the template. Values for * parameters must be provided when the template is instantiated. * @return value or {@code null} for none */ public java.util.List getParameters() { return parameters; } /** * Optional. Template parameters whose values are substituted into the template. Values for * parameters must be provided when the template is instantiated. * @param parameters parameters or {@code null} for none */ public WorkflowTemplate setParameters(java.util.List parameters) { this.parameters = parameters; return this; } /** * Required. WorkflowTemplate scheduling information. * @return value or {@code null} for none */ public WorkflowTemplatePlacement getPlacement() { return placement; } /** * Required. WorkflowTemplate scheduling information. * @param placement placement or {@code null} for none */ public WorkflowTemplate setPlacement(WorkflowTemplatePlacement placement) { this.placement = placement; return this; } /** * Output only. The time template was last updated. * @return value or {@code null} for none */ public String getUpdateTime() { return updateTime; } /** * Output only. The time template was last updated. * @param updateTime updateTime or {@code null} for none */ public WorkflowTemplate setUpdateTime(String updateTime) { this.updateTime = updateTime; return this; } /** * Optional. Used to perform a consistent read-modify-write.This field should be left blank for a * CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must * match the current server version. A typical update template flow would fetch the current * template with a GetWorkflowTemplate request, which will return the current template with the * version field filled in with the current server version. The user updates other fields in the * template, then returns it as part of the UpdateWorkflowTemplate request. * @return value or {@code null} for none */ public java.lang.Integer getVersion() { return version; } /** * Optional. Used to perform a consistent read-modify-write.This field should be left blank for a * CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must * match the current server version. A typical update template flow would fetch the current * template with a GetWorkflowTemplate request, which will return the current template with the * version field filled in with the current server version. The user updates other fields in the * template, then returns it as part of the UpdateWorkflowTemplate request. * @param version version or {@code null} for none */ public WorkflowTemplate setVersion(java.lang.Integer version) { this.version = version; return this; } @Override public WorkflowTemplate set(String fieldName, Object value) { return (WorkflowTemplate) super.set(fieldName, value); } @Override public WorkflowTemplate clone() { return (WorkflowTemplate) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy