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

com.amazonaws.services.snowball.model.JobLogs Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Snowball module holds the client classes that are used for communicating with Amazon Snowball.

There is a newer version: 1.12.788
Show newest version
/*
 * Copyright 2011-2016 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.snowball.model;

import java.io.Serializable;

/**
 * 

* Contains job logs. Whenever Snowball is used to import data into or export * data out of Amazon S3, you'll have the option of downloading a PDF job * report. Job logs are returned as a part of the response syntax of the * DescribeJob action in the JobMetadata data type. * The job logs can be accessed for up to 60 minutes after this request has been * made. To access any of the job logs after 60 minutes have passed, you'll have * to make another call to the DescribeJob action. *

*

* For import jobs, the PDF job report becomes available at the end of the * import process. For export jobs, your job report typically becomes available * while the Snowball for your job part is being delivered to you. *

*

* The job report provides you insight into the state of your Amazon S3 data * transfer. The report includes details about your job or job part for your * records. *

*

* For deeper visibility into the status of your transferred objects, you can * look at the two associated logs: a success log and a failure log. The logs * are saved in comma-separated value (CSV) format, and the name of each log * includes the ID of the job or job part that the log describes. *

*/ public class JobLogs implements Serializable, Cloneable { /** *

* A link to an Amazon S3 presigned URL where the job completion report is * located. *

*/ private String jobCompletionReportURI; /** *

* A link to an Amazon S3 presigned URL where the job success log is * located. *

*/ private String jobSuccessLogURI; /** *

* A link to an Amazon S3 presigned URL where the job failure log is * located. *

*/ private String jobFailureLogURI; /** *

* A link to an Amazon S3 presigned URL where the job completion report is * located. *

* * @param jobCompletionReportURI * A link to an Amazon S3 presigned URL where the job completion * report is located. */ public void setJobCompletionReportURI(String jobCompletionReportURI) { this.jobCompletionReportURI = jobCompletionReportURI; } /** *

* A link to an Amazon S3 presigned URL where the job completion report is * located. *

* * @return A link to an Amazon S3 presigned URL where the job completion * report is located. */ public String getJobCompletionReportURI() { return this.jobCompletionReportURI; } /** *

* A link to an Amazon S3 presigned URL where the job completion report is * located. *

* * @param jobCompletionReportURI * A link to an Amazon S3 presigned URL where the job completion * report is located. * @return Returns a reference to this object so that method calls can be * chained together. */ public JobLogs withJobCompletionReportURI(String jobCompletionReportURI) { setJobCompletionReportURI(jobCompletionReportURI); return this; } /** *

* A link to an Amazon S3 presigned URL where the job success log is * located. *

* * @param jobSuccessLogURI * A link to an Amazon S3 presigned URL where the job success log is * located. */ public void setJobSuccessLogURI(String jobSuccessLogURI) { this.jobSuccessLogURI = jobSuccessLogURI; } /** *

* A link to an Amazon S3 presigned URL where the job success log is * located. *

* * @return A link to an Amazon S3 presigned URL where the job success log is * located. */ public String getJobSuccessLogURI() { return this.jobSuccessLogURI; } /** *

* A link to an Amazon S3 presigned URL where the job success log is * located. *

* * @param jobSuccessLogURI * A link to an Amazon S3 presigned URL where the job success log is * located. * @return Returns a reference to this object so that method calls can be * chained together. */ public JobLogs withJobSuccessLogURI(String jobSuccessLogURI) { setJobSuccessLogURI(jobSuccessLogURI); return this; } /** *

* A link to an Amazon S3 presigned URL where the job failure log is * located. *

* * @param jobFailureLogURI * A link to an Amazon S3 presigned URL where the job failure log is * located. */ public void setJobFailureLogURI(String jobFailureLogURI) { this.jobFailureLogURI = jobFailureLogURI; } /** *

* A link to an Amazon S3 presigned URL where the job failure log is * located. *

* * @return A link to an Amazon S3 presigned URL where the job failure log is * located. */ public String getJobFailureLogURI() { return this.jobFailureLogURI; } /** *

* A link to an Amazon S3 presigned URL where the job failure log is * located. *

* * @param jobFailureLogURI * A link to an Amazon S3 presigned URL where the job failure log is * located. * @return Returns a reference to this object so that method calls can be * chained together. */ public JobLogs withJobFailureLogURI(String jobFailureLogURI) { setJobFailureLogURI(jobFailureLogURI); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getJobCompletionReportURI() != null) sb.append("JobCompletionReportURI: " + getJobCompletionReportURI() + ","); if (getJobSuccessLogURI() != null) sb.append("JobSuccessLogURI: " + getJobSuccessLogURI() + ","); if (getJobFailureLogURI() != null) sb.append("JobFailureLogURI: " + getJobFailureLogURI()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof JobLogs == false) return false; JobLogs other = (JobLogs) obj; if (other.getJobCompletionReportURI() == null ^ this.getJobCompletionReportURI() == null) return false; if (other.getJobCompletionReportURI() != null && other.getJobCompletionReportURI().equals( this.getJobCompletionReportURI()) == false) return false; if (other.getJobSuccessLogURI() == null ^ this.getJobSuccessLogURI() == null) return false; if (other.getJobSuccessLogURI() != null && other.getJobSuccessLogURI().equals( this.getJobSuccessLogURI()) == false) return false; if (other.getJobFailureLogURI() == null ^ this.getJobFailureLogURI() == null) return false; if (other.getJobFailureLogURI() != null && other.getJobFailureLogURI().equals( this.getJobFailureLogURI()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobCompletionReportURI() == null) ? 0 : getJobCompletionReportURI().hashCode()); hashCode = prime * hashCode + ((getJobSuccessLogURI() == null) ? 0 : getJobSuccessLogURI() .hashCode()); hashCode = prime * hashCode + ((getJobFailureLogURI() == null) ? 0 : getJobFailureLogURI() .hashCode()); return hashCode; } @Override public JobLogs clone() { try { return (JobLogs) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy