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 response to a successful GetSAMLProvider request.

 
 public class GetSAMLProviderResult implements SerializableCloneable {

    
The XML metadata document that includes information about an identity provider.

Constraints:
Length: 1000 - 10000000

 
     private String sAMLMetadataDocument;

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

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

    
The XML metadata document that includes information about an identity provider.

Constraints:
Length: 1000 - 10000000

Returns:
The XML metadata document that includes information about an identity provider.
 
     public String getSAMLMetadataDocument() {
         return ;
     }
    
    
The XML metadata document that includes information about an identity provider.

Constraints:
Length: 1000 - 10000000

Parameters:
sAMLMetadataDocument The XML metadata document that includes information about an identity provider.
 
     public void setSAMLMetadataDocument(String sAMLMetadataDocument) {
         this. = sAMLMetadataDocument;
     }
    
    
The XML metadata document that includes information about an identity provider.

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

Constraints:
Length: 1000 - 10000000

Parameters:
sAMLMetadataDocument The XML metadata document that includes information about an identity provider.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GetSAMLProviderResult withSAMLMetadataDocument(String sAMLMetadataDocument) {
         this. = sAMLMetadataDocument;
         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 GetSAMLProviderResult withCreateDate(java.util.Date createDate) {
        this. = createDate;
        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 GetSAMLProviderResult withValidUntil(java.util.Date validUntil) {
        this. = validUntil;
        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 (getSAMLMetadataDocument() != nullsb.append("SAMLMetadataDocument: " + getSAMLMetadataDocument() + ",");
        if (getCreateDate() != nullsb.append("CreateDate: " + getCreateDate() + ",");
        if (getValidUntil() != nullsb.append("ValidUntil: " + getValidUntil() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getSAMLMetadataDocument() == null) ? 0 : getSAMLMetadataDocument().hashCode()); 
        hashCode = prime * hashCode + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); 
        hashCode = prime * hashCode + ((getValidUntil() == null) ? 0 : getValidUntil().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof GetSAMLProviderResult == falsereturn false;
        GetSAMLProviderResult other = (GetSAMLProviderResult)obj;
        
        if (other.getSAMLMetadataDocument() == null ^ this.getSAMLMetadataDocument() == nullreturn false;
        if (other.getSAMLMetadataDocument() != null && other.getSAMLMetadataDocument().equals(this.getSAMLMetadataDocument()) == falsereturn false
        if (other.getCreateDate() == null ^ this.getCreateDate() == nullreturn false;
        if (other.getCreateDate() != null && other.getCreateDate().equals(this.getCreateDate()) == falsereturn false
        if (other.getValidUntil() == null ^ this.getValidUntil() == nullreturn false;
        if (other.getValidUntil() != null && other.getValidUntil().equals(this.getValidUntil()) == falsereturn false
        return true;
    }
    
    @Override
    public GetSAMLProviderResult clone() {
        try {
            return (GetSAMLProviderResultsuper.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