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

Contains the list of SAML providers for this account.

 
 public class SAMLProviderListEntry implements SerializableCloneable {

    
The Amazon Resource Name (ARN) of the SAML provider.

Constraints:
Length: 20 - 2048

 
     private String arn;

    
The expiration date and time for the SAML provider.
 
     private java.util.Date validUntil;

    
The date and time when the SAML provider was created.
 
     private java.util.Date createDate;

    
The Amazon Resource Name (ARN) of the SAML provider.

Constraints:
Length: 20 - 2048

Returns:
The Amazon Resource Name (ARN) of the SAML provider.
 
     public String getArn() {
         return ;
     }
    
    
The Amazon Resource Name (ARN) of the SAML provider.

Constraints:
Length: 20 - 2048

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

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

Constraints:
Length: 20 - 2048

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

    
The expiration date and time for the SAML provider.

Returns:
The expiration date and time for the SAML provider.
 
     public java.util.Date getValidUntil() {
         return ;
     }
    
    
The expiration date and time for the SAML provider.

Parameters:
validUntil The expiration date and time for the SAML provider.
 
    public void setValidUntil(java.util.Date validUntil) {
        this. = validUntil;
    }
    
    
The expiration date and time for the SAML provider.

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

Parameters:
validUntil The expiration date and time for the SAML provider.
Returns:
A reference to this updated object so that method calls can be chained together.
    public SAMLProviderListEntry withValidUntil(java.util.Date validUntil) {
        this. = validUntil;
        return this;
    }

    
The date and time when the SAML provider was created.

Returns:
The date and time when the SAML provider was created.
    public java.util.Date getCreateDate() {
        return ;
    }
    
    
The date and time when the SAML provider was created.

Parameters:
createDate The date and time when the SAML provider was created.
    public void setCreateDate(java.util.Date createDate) {
        this. = createDate;
    }
    
    
The date and time when the SAML provider was created.

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

Parameters:
createDate The date and time when the SAML provider was created.
Returns:
A reference to this updated object so that method calls can be chained together.
    public SAMLProviderListEntry withCreateDate(java.util.Date createDate) {
        this. = createDate;
        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 (getArn() != nullsb.append("Arn: " + getArn() + ",");
        if (getValidUntil() != nullsb.append("ValidUntil: " + getValidUntil() + ",");
        if (getCreateDate() != nullsb.append("CreateDate: " + getCreateDate() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); 
        hashCode = prime * hashCode + ((getValidUntil() == null) ? 0 : getValidUntil().hashCode()); 
        hashCode = prime * hashCode + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof SAMLProviderListEntry == falsereturn false;
        SAMLProviderListEntry other = (SAMLProviderListEntry)obj;
        
        if (other.getArn() == null ^ this.getArn() == nullreturn false;
        if (other.getArn() != null && other.getArn().equals(this.getArn()) == falsereturn false
        if (other.getValidUntil() == null ^ this.getValidUntil() == nullreturn false;
        if (other.getValidUntil() != null && other.getValidUntil().equals(this.getValidUntil()) == falsereturn false
        if (other.getCreateDate() == null ^ this.getCreateDate() == nullreturn false;
        if (other.getCreateDate() != null && other.getCreateDate().equals(this.getCreateDate()) == falsereturn false
        return true;
    }
    
    @Override
    public SAMLProviderListEntry clone() {
        try {
            return (SAMLProviderListEntrysuper.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