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

com.google.api.services.storagetransfer.model.TransferJob Maven / Gradle / Ivy

There is a newer version: v1-rev20241005-2.0.0
Show newest version
/*
 * 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://code.google.com/p/google-apis-client-generator/
 * (build: 2015-07-16 18:28:29 UTC)
 * on 2015-07-22 at 02:28:25 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.storagetransfer.model;

/**
 * This resource represents the configuration of a transfer job that runs periodically.
 *
 * 

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 Google Storage Transfer API. For a detailed * explanation see: * http://code.google.com/p/google-http-java-client/wiki/JSON *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class TransferJob extends com.google.api.client.json.GenericJson { /** * This field cannot be mutated by user requests. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTime; /** * This field cannot be mutated by user requests. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String deletionTime; /** * A description provided by the user for the job. Its max length is 1024 bytes when Unicode * encoded. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** * This field cannot be mutated by user requests. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String lastModificationTime; /** * A globally unique name assigned by the Storage Transfer service upon job creation. This field * should be left empty in requests to create a new transfer job; otherwise, the requests result * in an `INVALID_ARGUMENT` error. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * The ID of Google Developers Console project that owns the job. Required. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String projectId; /** * Schedule specification. Required. * The value may be {@code null}. */ @com.google.api.client.util.Key private Schedule schedule; /** * Status of the job. This value MUST be specified for CreateTransferJobRequests. NOTE: Changing * the job status will take effect during a subsequent job run. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** * Transfer specification. Required. * The value may be {@code null}. */ @com.google.api.client.util.Key private TransferSpec transferSpec; /** * This field cannot be mutated by user requests. * @return value or {@code null} for none */ public java.lang.String getCreationTime() { return creationTime; } /** * This field cannot be mutated by user requests. * @param creationTime creationTime or {@code null} for none */ public TransferJob setCreationTime(java.lang.String creationTime) { this.creationTime = creationTime; return this; } /** * This field cannot be mutated by user requests. * @return value or {@code null} for none */ public java.lang.String getDeletionTime() { return deletionTime; } /** * This field cannot be mutated by user requests. * @param deletionTime deletionTime or {@code null} for none */ public TransferJob setDeletionTime(java.lang.String deletionTime) { this.deletionTime = deletionTime; return this; } /** * A description provided by the user for the job. Its max length is 1024 bytes when Unicode * encoded. * @return value or {@code null} for none */ public java.lang.String getDescription() { return description; } /** * A description provided by the user for the job. Its max length is 1024 bytes when Unicode * encoded. * @param description description or {@code null} for none */ public TransferJob setDescription(java.lang.String description) { this.description = description; return this; } /** * This field cannot be mutated by user requests. * @return value or {@code null} for none */ public java.lang.String getLastModificationTime() { return lastModificationTime; } /** * This field cannot be mutated by user requests. * @param lastModificationTime lastModificationTime or {@code null} for none */ public TransferJob setLastModificationTime(java.lang.String lastModificationTime) { this.lastModificationTime = lastModificationTime; return this; } /** * A globally unique name assigned by the Storage Transfer service upon job creation. This field * should be left empty in requests to create a new transfer job; otherwise, the requests result * in an `INVALID_ARGUMENT` error. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * A globally unique name assigned by the Storage Transfer service upon job creation. This field * should be left empty in requests to create a new transfer job; otherwise, the requests result * in an `INVALID_ARGUMENT` error. * @param name name or {@code null} for none */ public TransferJob setName(java.lang.String name) { this.name = name; return this; } /** * The ID of Google Developers Console project that owns the job. Required. * @return value or {@code null} for none */ public java.lang.String getProjectId() { return projectId; } /** * The ID of Google Developers Console project that owns the job. Required. * @param projectId projectId or {@code null} for none */ public TransferJob setProjectId(java.lang.String projectId) { this.projectId = projectId; return this; } /** * Schedule specification. Required. * @return value or {@code null} for none */ public Schedule getSchedule() { return schedule; } /** * Schedule specification. Required. * @param schedule schedule or {@code null} for none */ public TransferJob setSchedule(Schedule schedule) { this.schedule = schedule; return this; } /** * Status of the job. This value MUST be specified for CreateTransferJobRequests. NOTE: Changing * the job status will take effect during a subsequent job run. * @return value or {@code null} for none */ public java.lang.String getStatus() { return status; } /** * Status of the job. This value MUST be specified for CreateTransferJobRequests. NOTE: Changing * the job status will take effect during a subsequent job run. * @param status status or {@code null} for none */ public TransferJob setStatus(java.lang.String status) { this.status = status; return this; } /** * Transfer specification. Required. * @return value or {@code null} for none */ public TransferSpec getTransferSpec() { return transferSpec; } /** * Transfer specification. Required. * @param transferSpec transferSpec or {@code null} for none */ public TransferJob setTransferSpec(TransferSpec transferSpec) { this.transferSpec = transferSpec; return this; } @Override public TransferJob set(String fieldName, Object value) { return (TransferJob) super.set(fieldName, value); } @Override public TransferJob clone() { return (TransferJob) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy