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 GetOpenIDConnectProvider request.

 
 public class GetOpenIDConnectProviderResult implements SerializableCloneable {

    
The URL that the IAM OpenID Connect provider is associated with. For more information, see CreateOpenIDConnectProvider.

Constraints:
Length: 1 - 255

 
     private String url;

    
A list of client IDs (also known as audiences) that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.
 
A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.
 
The date and time when the IAM OpenID Connect provider entity was created in the AWS account.
 
     private java.util.Date createDate;

    
The URL that the IAM OpenID Connect provider is associated with. For more information, see CreateOpenIDConnectProvider.

Constraints:
Length: 1 - 255

Returns:
The URL that the IAM OpenID Connect provider is associated with. For more information, see CreateOpenIDConnectProvider.
 
     public String getUrl() {
         return ;
     }
    
    
The URL that the IAM OpenID Connect provider is associated with. For more information, see CreateOpenIDConnectProvider.

Constraints:
Length: 1 - 255

Parameters:
url The URL that the IAM OpenID Connect provider is associated with. For more information, see CreateOpenIDConnectProvider.
 
     public void setUrl(String url) {
         this. = url;
     }
    
    
The URL that the IAM OpenID Connect provider is associated with. For more information, see CreateOpenIDConnectProvider.

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

Constraints:
Length: 1 - 255

Parameters:
url The URL that the IAM OpenID Connect provider is associated with. For more information, see CreateOpenIDConnectProvider.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GetOpenIDConnectProviderResult withUrl(String url) {
        this. = url;
        return this;
    }

    
A list of client IDs (also known as audiences) that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

Returns:
A list of client IDs (also known as audiences) that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.
    public java.util.List<StringgetClientIDList() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of client IDs (also known as audiences) that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

Parameters:
clientIDList A list of client IDs (also known as audiences) that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.
    public void setClientIDList(java.util.Collection<StringclientIDList) {
        if (clientIDList == null) {
            this. = null;
            return;
        }
        clientIDListCopy.addAll(clientIDList);
        this. = clientIDListCopy;
    }
    
    
A list of client IDs (also known as audiences) that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

NOTE: This method appends the values to the existing list (if any). Use setClientIDList(java.util.Collection) or withClientIDList(java.util.Collection) if you want to override the existing values.

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

Parameters:
clientIDList A list of client IDs (also known as audiences) that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetOpenIDConnectProviderResult withClientIDList(String... clientIDList) {
        if (getClientIDList() == nullsetClientIDList(new java.util.ArrayList<String>(clientIDList.length));
        for (String value : clientIDList) {
            getClientIDList().add(value);
        }
        return this;
    }
    
    
A list of client IDs (also known as audiences) that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

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

Parameters:
clientIDList A list of client IDs (also known as audiences) that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (clientIDList == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringclientIDListCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(clientIDList.size());
            clientIDListCopy.addAll(clientIDList);
            this. = clientIDListCopy;
        }
        return this;
    }

    
A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

Returns:
A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.
    public java.util.List<StringgetThumbprintList() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

Parameters:
thumbprintList A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.
    public void setThumbprintList(java.util.Collection<StringthumbprintList) {
        if (thumbprintList == null) {
            this. = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<StringthumbprintListCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(thumbprintList.size());
        thumbprintListCopy.addAll(thumbprintList);
        this. = thumbprintListCopy;
    }
    
    
A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

NOTE: This method appends the values to the existing list (if any). Use setThumbprintList(java.util.Collection) or withThumbprintList(java.util.Collection) if you want to override the existing values.

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

Parameters:
thumbprintList A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetOpenIDConnectProviderResult withThumbprintList(String... thumbprintList) {
        if (getThumbprintList() == nullsetThumbprintList(new java.util.ArrayList<String>(thumbprintList.length));
        for (String value : thumbprintList) {
            getThumbprintList().add(value);
        }
        return this;
    }
    
    
A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

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

Parameters:
thumbprintList A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (thumbprintList == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringthumbprintListCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(thumbprintList.size());
            thumbprintListCopy.addAll(thumbprintList);
            this. = thumbprintListCopy;
        }
        return this;
    }

    
The date and time when the IAM OpenID Connect provider entity was created in the AWS account.

Returns:
The date and time when the IAM OpenID Connect provider entity was created in the AWS account.
    public java.util.Date getCreateDate() {
        return ;
    }
    
    
The date and time when the IAM OpenID Connect provider entity was created in the AWS account.

Parameters:
createDate The date and time when the IAM OpenID Connect provider entity was created in the AWS account.
    public void setCreateDate(java.util.Date createDate) {
        this. = createDate;
    }
    
    
The date and time when the IAM OpenID Connect provider entity was created in the AWS account.

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

Parameters:
createDate The date and time when the IAM OpenID Connect provider entity was created in the AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.
        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 (getUrl() != nullsb.append("Url: " + getUrl() + ",");
        if (getClientIDList() != nullsb.append("ClientIDList: " + getClientIDList() + ",");
        if (getThumbprintList() != nullsb.append("ThumbprintList: " + getThumbprintList() + ",");
        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 + ((getUrl() == null) ? 0 : getUrl().hashCode()); 
        hashCode = prime * hashCode + ((getClientIDList() == null) ? 0 : getClientIDList().hashCode()); 
        hashCode = prime * hashCode + ((getThumbprintList() == null) ? 0 : getThumbprintList().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 GetOpenIDConnectProviderResult == falsereturn false;
        
        if (other.getUrl() == null ^ this.getUrl() == nullreturn false;
        if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == falsereturn false
        if (other.getClientIDList() == null ^ this.getClientIDList() == nullreturn false;
        if (other.getClientIDList() != null && other.getClientIDList().equals(this.getClientIDList()) == falsereturn false
        if (other.getThumbprintList() == null ^ this.getThumbprintList() == nullreturn false;
        if (other.getThumbprintList() != null && other.getThumbprintList().equals(this.getThumbprintList()) == falsereturn false
        if (other.getCreateDate() == null ^ this.getCreateDate() == nullreturn false;
        if (other.getCreateDate() != null && other.getCreateDate().equals(this.getCreateDate()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (GetOpenIDConnectProviderResultsuper.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