Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file 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.
  */
 package com.amazonaws.services.elastictranscoder.model;
 

A section of the response body that provides information about the job that is created.

 
 public class Job implements SerializableCloneable {

    
The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to delete the job.

Constraints:
Pattern: ^\d{13}-\w{6}$

 
     private String id;

    
The Amazon Resource Name (ARN) for the job.
 
     private String arn;

    
The Id of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to transcode and the bucket into which Elastic Transcoder puts the transcoded files.

Constraints:
Pattern: ^\d{13}-\w{6}$

 
     private String pipelineId;

    
A section of the request or response body that provides information about the file that is being transcoded.
 
     private JobInput input;

    
If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object.

<important>Outputs recommended instead.</important> A section of the request or response body that provides information about the transcoded (target) file.

 
     private JobOutput output;

    
Information about the output files. We recommend that you use the Outputs syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the Outputs and Output syntaxes in the same request. You can create a maximum of 30 outputs per job.

If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job.

 
The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the end of the OutputKeyPrefix.

Constraints:
Length: 1 - 255

 
     private String outputKeyPrefix;

    
<important>Outputs in Fragmented MP4 or MPEG-TS format only.</important>If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create.

The maximum number of master playlists in a job is 30.

The status of the job: Submitted, Progressing, Complete, Canceled, or Error.

Constraints:
Pattern: (^Submitted$)|(^Progressing$)|(^Complete$)|(^Canceled$)|(^Error$)

    private String status;

    
User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs will be returned in the same order in which you specify them.

Metadata keys and values must use characters from the following list:

  • 0-9

  • A-Z and a-z

  • Space

  • The following symbols: _.:/=+-%@

    private java.util.Map<String,StringuserMetadata;

    
Details about the timing of a job.
    private Timing timing;

    
The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to delete the job.

Constraints:
Pattern: ^\d{13}-\w{6}$

Returns:
The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to delete the job.
    public String getId() {
        return ;
    }
    
    
The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to delete the job.

Constraints:
Pattern: ^\d{13}-\w{6}$

Parameters:
id The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to delete the job.
    public void setId(String id) {
        this. = id;
    }
    
    
The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to delete the job.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: ^\d{13}-\w{6}$

Parameters:
id The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to delete the job.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withId(String id) {
        this. = id;
        return this;
    }

    
The Amazon Resource Name (ARN) for the job.

Returns:
The Amazon Resource Name (ARN) for the job.
    public String getArn() {
        return ;
    }
    
    
The Amazon Resource Name (ARN) for the job.

Parameters:
arn The Amazon Resource Name (ARN) for the job.
    public void setArn(String arn) {
        this. = arn;
    }
    
    
The Amazon Resource Name (ARN) for the job.

Returns a reference to this object so that method calls can be chained together.

Parameters:
arn The Amazon Resource Name (ARN) for the job.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withArn(String arn) {
        this. = arn;
        return this;
    }

    
The Id of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to transcode and the bucket into which Elastic Transcoder puts the transcoded files.

Constraints:
Pattern: ^\d{13}-\w{6}$

Returns:
The Id of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to transcode and the bucket into which Elastic Transcoder puts the transcoded files.
    public String getPipelineId() {
        return ;
    }
    
    
The Id of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to transcode and the bucket into which Elastic Transcoder puts the transcoded files.

Constraints:
Pattern: ^\d{13}-\w{6}$

Parameters:
pipelineId The Id of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to transcode and the bucket into which Elastic Transcoder puts the transcoded files.
    public void setPipelineId(String pipelineId) {
        this. = pipelineId;
    }
    
    
The Id of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to transcode and the bucket into which Elastic Transcoder puts the transcoded files.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: ^\d{13}-\w{6}$

Parameters:
pipelineId The Id of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to transcode and the bucket into which Elastic Transcoder puts the transcoded files.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withPipelineId(String pipelineId) {
        this. = pipelineId;
        return this;
    }

    
A section of the request or response body that provides information about the file that is being transcoded.

Returns:
A section of the request or response body that provides information about the file that is being transcoded.
    public JobInput getInput() {
        return ;
    }
    
    
A section of the request or response body that provides information about the file that is being transcoded.

Parameters:
input A section of the request or response body that provides information about the file that is being transcoded.
    public void setInput(JobInput input) {
        this. = input;
    }
    
    
A section of the request or response body that provides information about the file that is being transcoded.

Returns a reference to this object so that method calls can be chained together.

Parameters:
input A section of the request or response body that provides information about the file that is being transcoded.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withInput(JobInput input) {
        this. = input;
        return this;
    }

    
If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object.

<important>Outputs recommended instead.</important> A section of the request or response body that provides information about the transcoded (target) file.

Returns:
If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object.

<important>Outputs recommended instead.</important> A section of the request or response body that provides information about the transcoded (target) file.

    public JobOutput getOutput() {
        return ;
    }
    
    
If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object.

<important>Outputs recommended instead.</important> A section of the request or response body that provides information about the transcoded (target) file.

Parameters:
output If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object.

<important>Outputs recommended instead.</important> A section of the request or response body that provides information about the transcoded (target) file.

    public void setOutput(JobOutput output) {
        this. = output;
    }
    
    
If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object.

<important>Outputs recommended instead.</important> A section of the request or response body that provides information about the transcoded (target) file.

Returns a reference to this object so that method calls can be chained together.

Parameters:
output If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object.

<important>Outputs recommended instead.</important> A section of the request or response body that provides information about the transcoded (target) file.

Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withOutput(JobOutput output) {
        this. = output;
        return this;
    }

    
Information about the output files. We recommend that you use the Outputs syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the Outputs and Output syntaxes in the same request. You can create a maximum of 30 outputs per job.

If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job.

Returns:
Information about the output files. We recommend that you use the Outputs syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the Outputs and Output syntaxes in the same request. You can create a maximum of 30 outputs per job.

If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job.

    public java.util.List<JobOutputgetOutputs() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<JobOutput>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
Information about the output files. We recommend that you use the Outputs syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the Outputs and Output syntaxes in the same request. You can create a maximum of 30 outputs per job.

If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job.

Parameters:
outputs Information about the output files. We recommend that you use the Outputs syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the Outputs and Output syntaxes in the same request. You can create a maximum of 30 outputs per job.

If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job.

    public void setOutputs(java.util.Collection<JobOutputoutputs) {
        if (outputs == null) {
            this. = null;
            return;
        }
        outputsCopy.addAll(outputs);
        this. = outputsCopy;
    }
    
    
Information about the output files. We recommend that you use the Outputs syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the Outputs and Output syntaxes in the same request. You can create a maximum of 30 outputs per job.

If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job.

NOTE: This method appends the values to the existing list (if any). Use setOutputs(java.util.Collection) or withOutputs(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
outputs Information about the output files. We recommend that you use the Outputs syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the Outputs and Output syntaxes in the same request. You can create a maximum of 30 outputs per job.

If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job.

Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withOutputs(JobOutput... outputs) {
        if (getOutputs() == nullsetOutputs(new java.util.ArrayList<JobOutput>(outputs.length));
        for (JobOutput value : outputs) {
            getOutputs().add(value);
        }
        return this;
    }
    
    
Information about the output files. We recommend that you use the Outputs syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the Outputs and Output syntaxes in the same request. You can create a maximum of 30 outputs per job.

If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job.

Returns a reference to this object so that method calls can be chained together.

Parameters:
outputs Information about the output files. We recommend that you use the Outputs syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the Outputs and Output syntaxes in the same request. You can create a maximum of 30 outputs per job.

If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job.

Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withOutputs(java.util.Collection<JobOutputoutputs) {
        if (outputs == null) {
            this. = null;
        } else {
            outputsCopy.addAll(outputs);
            this. = outputsCopy;
        }
        return this;
    }

    
The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the end of the OutputKeyPrefix.

Constraints:
Length: 1 - 255

Returns:
The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the end of the OutputKeyPrefix.
    public String getOutputKeyPrefix() {
        return ;
    }
    
    
The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the end of the OutputKeyPrefix.

Constraints:
Length: 1 - 255

Parameters:
outputKeyPrefix The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the end of the OutputKeyPrefix.
    public void setOutputKeyPrefix(String outputKeyPrefix) {
        this. = outputKeyPrefix;
    }
    
    
The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the end of the OutputKeyPrefix.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255

Parameters:
outputKeyPrefix The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the end of the OutputKeyPrefix.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withOutputKeyPrefix(String outputKeyPrefix) {
        this. = outputKeyPrefix;
        return this;
    }

    
<important>Outputs in Fragmented MP4 or MPEG-TS format only.</important>If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create.

The maximum number of master playlists in a job is 30.

Returns:
<important>Outputs in Fragmented MP4 or MPEG-TS format only.</important>If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create.

The maximum number of master playlists in a job is 30.

    public java.util.List<PlaylistgetPlaylists() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<Playlist>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
<important>Outputs in Fragmented MP4 or MPEG-TS format only.</important>If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create.

The maximum number of master playlists in a job is 30.

Parameters:
playlists <important>Outputs in Fragmented MP4 or MPEG-TS format only.</important>If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create.

The maximum number of master playlists in a job is 30.

    public void setPlaylists(java.util.Collection<Playlistplaylists) {
        if (playlists == null) {
            this. = null;
            return;
        }
        playlistsCopy.addAll(playlists);
        this. = playlistsCopy;
    }
    
    
<important>Outputs in Fragmented MP4 or MPEG-TS format only.</important>If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create.

The maximum number of master playlists in a job is 30.

NOTE: This method appends the values to the existing list (if any). Use setPlaylists(java.util.Collection) or withPlaylists(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
playlists <important>Outputs in Fragmented MP4 or MPEG-TS format only.</important>If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create.

The maximum number of master playlists in a job is 30.

Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withPlaylists(Playlist... playlists) {
        if (getPlaylists() == nullsetPlaylists(new java.util.ArrayList<Playlist>(playlists.length));
        for (Playlist value : playlists) {
            getPlaylists().add(value);
        }
        return this;
    }
    
    
<important>Outputs in Fragmented MP4 or MPEG-TS format only.</important>If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create.

The maximum number of master playlists in a job is 30.

Returns a reference to this object so that method calls can be chained together.

Parameters:
playlists <important>Outputs in Fragmented MP4 or MPEG-TS format only.</important>If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create.

The maximum number of master playlists in a job is 30.

Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withPlaylists(java.util.Collection<Playlistplaylists) {
        if (playlists == null) {
            this. = null;
        } else {
            playlistsCopy.addAll(playlists);
            this. = playlistsCopy;
        }
        return this;
    }

    
The status of the job: Submitted, Progressing, Complete, Canceled, or Error.

Constraints:
Pattern: (^Submitted$)|(^Progressing$)|(^Complete$)|(^Canceled$)|(^Error$)

Returns:
The status of the job: Submitted, Progressing, Complete, Canceled, or Error.
    public String getStatus() {
        return ;
    }
    
    
The status of the job: Submitted, Progressing, Complete, Canceled, or Error.

Constraints:
Pattern: (^Submitted$)|(^Progressing$)|(^Complete$)|(^Canceled$)|(^Error$)

Parameters:
status The status of the job: Submitted, Progressing, Complete, Canceled, or Error.
    public void setStatus(String status) {
        this. = status;
    }
    
    
The status of the job: Submitted, Progressing, Complete, Canceled, or Error.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: (^Submitted$)|(^Progressing$)|(^Complete$)|(^Canceled$)|(^Error$)

Parameters:
status The status of the job: Submitted, Progressing, Complete, Canceled, or Error.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withStatus(String status) {
        this. = status;
        return this;
    }

    
User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs will be returned in the same order in which you specify them.

Metadata keys and values must use characters from the following list:

  • 0-9

  • A-Z and a-z

  • Space

  • The following symbols: _.:/=+-%@

Returns:
User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs will be returned in the same order in which you specify them.

Metadata keys and values must use characters from the following list:

  • 0-9

  • A-Z and a-z

  • Space

  • The following symbols: _.:/=+-%@

    public java.util.Map<String,StringgetUserMetadata() {
        
        if ( == null) {
             = new java.util.HashMap<String,String>();
        }
        return ;
    }
    
    
User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs will be returned in the same order in which you specify them.

Metadata keys and values must use characters from the following list:

  • 0-9

  • A-Z and a-z

  • Space

  • The following symbols: _.:/=+-%@

Parameters:
userMetadata User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs will be returned in the same order in which you specify them.

Metadata keys and values must use characters from the following list:

  • 0-9

  • A-Z and a-z

  • Space

  • The following symbols: _.:/=+-%@

    public void setUserMetadata(java.util.Map<String,StringuserMetadata) {
        this. = userMetadata;
    }
    
    
User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs will be returned in the same order in which you specify them.

Metadata keys and values must use characters from the following list:

  • 0-9

  • A-Z and a-z

  • Space

  • The following symbols: _.:/=+-%@

Returns a reference to this object so that method calls can be chained together.

Parameters:
userMetadata User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs will be returned in the same order in which you specify them.

Metadata keys and values must use characters from the following list:

  • 0-9

  • A-Z and a-z

  • Space

  • The following symbols: _.:/=+-%@

Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withUserMetadata(java.util.Map<String,StringuserMetadata) {
        setUserMetadata(userMetadata);
        return this;
    }

    
User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in key/value pairs, and you can add up to 10 key/value pairs per job. Elastic Transcoder does not guarantee that key/value pairs will be returned in the same order in which you specify them.

Metadata keys and values must use characters from the following list:

  • 0-9

  • A-Z and a-z

  • Space

  • The following symbols: _.:/=+-%@

The method adds a new key-value pair into UserMetadata parameter, and returns a reference to this object so that method calls can be chained together.

Parameters:
key The key of the entry to be added into UserMetadata.
value The corresponding value of the entry to be added into UserMetadata.
  public Job addUserMetadataEntry(String keyString value) {
    if (null == this.) {
      this. = new java.util.HashMap<String,String>();
    }
    if (this..containsKey(key))
      throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
    this..put(keyvalue);
    return this;
  }

  
Removes all the entries added into UserMetadata.

Returns a reference to this object so that method calls can be chained together.

    this. = null;
    return this;
  }
  
    
Details about the timing of a job.

Returns:
Details about the timing of a job.
    public Timing getTiming() {
        return ;
    }
    
    
Details about the timing of a job.

Parameters:
timing Details about the timing of a job.
    public void setTiming(Timing timing) {
        this. = timing;
    }
    
    
Details about the timing of a job.

Returns a reference to this object so that method calls can be chained together.

Parameters:
timing Details about the timing of a job.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Job withTiming(Timing timing) {
        this. = timing;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getId() != nullsb.append("Id: " + getId() + ",");
        if (getArn() != nullsb.append("Arn: " + getArn() + ",");
        if (getPipelineId() != nullsb.append("PipelineId: " + getPipelineId() + ",");
        if (getInput() != nullsb.append("Input: " + getInput() + ",");
        if (getOutput() != nullsb.append("Output: " + getOutput() + ",");
        if (getOutputs() != nullsb.append("Outputs: " + getOutputs() + ",");
        if (getOutputKeyPrefix() != nullsb.append("OutputKeyPrefix: " + getOutputKeyPrefix() + ",");
        if (getPlaylists() != nullsb.append("Playlists: " + getPlaylists() + ",");
        if (getStatus() != nullsb.append("Status: " + getStatus() + ",");
        if (getUserMetadata() != nullsb.append("UserMetadata: " + getUserMetadata() + ",");
        if (getTiming() != nullsb.append("Timing: " + getTiming() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); 
        hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); 
        hashCode = prime * hashCode + ((getPipelineId() == null) ? 0 : getPipelineId().hashCode()); 
        hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode()); 
        hashCode = prime * hashCode + ((getOutput() == null) ? 0 : getOutput().hashCode()); 
        hashCode = prime * hashCode + ((getOutputs() == null) ? 0 : getOutputs().hashCode()); 
        hashCode = prime * hashCode + ((getOutputKeyPrefix() == null) ? 0 : getOutputKeyPrefix().hashCode()); 
        hashCode = prime * hashCode + ((getPlaylists() == null) ? 0 : getPlaylists().hashCode()); 
        hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); 
        hashCode = prime * hashCode + ((getUserMetadata() == null) ? 0 : getUserMetadata().hashCode()); 
        hashCode = prime * hashCode + ((getTiming() == null) ? 0 : getTiming().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof Job == falsereturn false;
        Job other = (Job)obj;
        
        if (other.getId() == null ^ this.getId() == nullreturn false;
        if (other.getId() != null && other.getId().equals(this.getId()) == falsereturn false
        if (other.getArn() == null ^ this.getArn() == nullreturn false;
        if (other.getArn() != null && other.getArn().equals(this.getArn()) == falsereturn false
        if (other.getPipelineId() == null ^ this.getPipelineId() == nullreturn false;
        if (other.getPipelineId() != null && other.getPipelineId().equals(this.getPipelineId()) == falsereturn false
        if (other.getInput() == null ^ this.getInput() == nullreturn false;
        if (other.getInput() != null && other.getInput().equals(this.getInput()) == falsereturn false
        if (other.getOutput() == null ^ this.getOutput() == nullreturn false;
        if (other.getOutput() != null && other.getOutput().equals(this.getOutput()) == falsereturn false
        if (other.getOutputs() == null ^ this.getOutputs() == nullreturn false;
        if (other.getOutputs() != null && other.getOutputs().equals(this.getOutputs()) == falsereturn false
        if (other.getOutputKeyPrefix() == null ^ this.getOutputKeyPrefix() == nullreturn false;
        if (other.getOutputKeyPrefix() != null && other.getOutputKeyPrefix().equals(this.getOutputKeyPrefix()) == falsereturn false
        if (other.getPlaylists() == null ^ this.getPlaylists() == nullreturn false;
        if (other.getPlaylists() != null && other.getPlaylists().equals(this.getPlaylists()) == falsereturn false
        if (other.getStatus() == null ^ this.getStatus() == nullreturn false;
        if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == falsereturn false
        if (other.getUserMetadata() == null ^ this.getUserMetadata() == nullreturn false;
        if (other.getUserMetadata() != null && other.getUserMetadata().equals(this.getUserMetadata()) == falsereturn false
        if (other.getTiming() == null ^ this.getTiming() == nullreturn false;
        if (other.getTiming() != null && other.getTiming().equals(this.getTiming()) == falsereturn false
        return true;
    }
    
    @Override
    public Job clone() {
        try {
            return (Jobsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X