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.simpleemail.model;
 

Represents the verification attributes of a single identity.

 
 public class IdentityVerificationAttributes implements SerializableCloneable {

    
The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

 
     private String verificationStatus;

    
The verification token for a domain identity. Null for email address identities.
 
     private String verificationToken;

    
The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

Returns:
The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".
See also:
VerificationStatus
 
     public String getVerificationStatus() {
         return ;
     }
    
    
The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

Parameters:
verificationStatus The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".
See also:
VerificationStatus
 
     public void setVerificationStatus(String verificationStatus) {
         this. = verificationStatus;
     }
    
    
The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".

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

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

Parameters:
verificationStatus The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
VerificationStatus
 
     public IdentityVerificationAttributes withVerificationStatus(String verificationStatus) {
         this. = verificationStatus;
         return this;
     }

    
The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

Parameters:
verificationStatus The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".
See also:
VerificationStatus
    public void setVerificationStatus(VerificationStatus verificationStatus) {
        this. = verificationStatus.toString();
    }
    
    
The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".

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

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

Parameters:
verificationStatus The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
VerificationStatus
        this. = verificationStatus.toString();
        return this;
    }

    
The verification token for a domain identity. Null for email address identities.

Returns:
The verification token for a domain identity. Null for email address identities.
    public String getVerificationToken() {
        return ;
    }
    
    
The verification token for a domain identity. Null for email address identities.

Parameters:
verificationToken The verification token for a domain identity. Null for email address identities.
    public void setVerificationToken(String verificationToken) {
        this. = verificationToken;
    }
    
    
The verification token for a domain identity. Null for email address identities.

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

Parameters:
verificationToken The verification token for a domain identity. Null for email address identities.
Returns:
A reference to this updated object so that method calls can be chained together.
    public IdentityVerificationAttributes withVerificationToken(String verificationToken) {
        this. = verificationToken;
        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 (getVerificationStatus() != nullsb.append("VerificationStatus: " + getVerificationStatus() + ",");
        if (getVerificationToken() != nullsb.append("VerificationToken: " + getVerificationToken() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getVerificationStatus() == null) ? 0 : getVerificationStatus().hashCode()); 
        hashCode = prime * hashCode + ((getVerificationToken() == null) ? 0 : getVerificationToken().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof IdentityVerificationAttributes == falsereturn false;
        
        if (other.getVerificationStatus() == null ^ this.getVerificationStatus() == nullreturn false;
        if (other.getVerificationStatus() != null && other.getVerificationStatus().equals(this.getVerificationStatus()) == falsereturn false
        if (other.getVerificationToken() == null ^ this.getVerificationToken() == nullreturn false;
        if (other.getVerificationToken() != null && other.getVerificationToken().equals(this.getVerificationToken()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (IdentityVerificationAttributessuper.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