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;
 

The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify in order to report job status.

IMPORTANT:To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.

 
 public class Notifications implements SerializableCloneable {

    
The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

 
     private String progressing;

    
The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

 
     private String completed;

    
The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

 
     private String warning;

    
The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

 
     private String error;

    
The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Returns:
The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job.
 
     public String getProgressing() {
         return ;
     }
    
    
The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Parameters:
progressing The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job.
 
     public void setProgressing(String progressing) {
         this. = progressing;
     }
    
    
The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job.

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

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Parameters:
progressing The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Notifications withProgressing(String progressing) {
        this. = progressing;
        return this;
    }

    
The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Returns:
The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job.
    public String getCompleted() {
        return ;
    }
    
    
The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Parameters:
completed The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job.
    public void setCompleted(String completed) {
        this. = completed;
    }
    
    
The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job.

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

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Parameters:
completed The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Notifications withCompleted(String completed) {
        this. = completed;
        return this;
    }

    
The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Returns:
The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition.
    public String getWarning() {
        return ;
    }
    
    
The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Parameters:
warning The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition.
    public void setWarning(String warning) {
        this. = warning;
    }
    
    
The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition.

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

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Parameters:
warning The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Notifications withWarning(String warning) {
        this. = warning;
        return this;
    }

    
The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Returns:
The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition.
    public String getError() {
        return ;
    }
    
    
The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition.

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Parameters:
error The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition.
    public void setError(String error) {
        this. = error;
    }
    
    
The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition.

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

Constraints:
Pattern: (^$)|(^arn:aws:sns:.*:\w{12}:.+$)

Parameters:
error The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition.
Returns:
A reference to this updated object so that method calls can be chained together.
    public Notifications withError(String error) {
        this. = error;
        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 (getProgressing() != nullsb.append("Progressing: " + getProgressing() + ",");
        if (getCompleted() != nullsb.append("Completed: " + getCompleted() + ",");
        if (getWarning() != nullsb.append("Warning: " + getWarning() + ",");
        if (getError() != nullsb.append("Error: " + getError() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getProgressing() == null) ? 0 : getProgressing().hashCode()); 
        hashCode = prime * hashCode + ((getCompleted() == null) ? 0 : getCompleted().hashCode()); 
        hashCode = prime * hashCode + ((getWarning() == null) ? 0 : getWarning().hashCode()); 
        hashCode = prime * hashCode + ((getError() == null) ? 0 : getError().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof Notifications == falsereturn false;
        Notifications other = (Notifications)obj;
        
        if (other.getProgressing() == null ^ this.getProgressing() == nullreturn false;
        if (other.getProgressing() != null && other.getProgressing().equals(this.getProgressing()) == falsereturn false
        if (other.getCompleted() == null ^ this.getCompleted() == nullreturn false;
        if (other.getCompleted() != null && other.getCompleted().equals(this.getCompleted()) == falsereturn false
        if (other.getWarning() == null ^ this.getWarning() == nullreturn false;
        if (other.getWarning() != null && other.getWarning().equals(this.getWarning()) == falsereturn false
        if (other.getError() == null ^ this.getError() == nullreturn false;
        if (other.getError() != null && other.getError().equals(this.getError()) == falsereturn false
        return true;
    }
    
    @Override
    public Notifications clone() {
        try {
            return (Notificationssuper.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