All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.codegurureviewer.model.RepositoryAssociationSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon CodeGuru Reviewer module holds the client classes that are used for communicating with Amazon CodeGuru Reviewer Service

The newest version!
/*
 * Copyright 2019-2024 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.codegurureviewer.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Summary information about a repository association. The ListRepositoryAssociations operation returns a list of RepositoryAssociationSummary objects. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RepositoryAssociationSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations. *

*/ private String associationArn; /** *

* The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more * information, see Connection in * the Amazon Web Services CodeStar Connections API Reference. *

*/ private String connectionArn; /** *

* The time, in milliseconds since the epoch, since the repository association was last updated. *

*/ private java.util.Date lastUpdatedTimeStamp; /** *

* The repository association ID. *

*/ private String associationId; /** *

* The name of the repository association. *

*/ private String name; /** *

* The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services * account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket * repository, this is the username for the account that owns the repository. For an S3 repository, it can be the * username or Amazon Web Services account ID. *

*/ private String owner; /** *

* The provider type of the repository association. *

*/ private String providerType; /** *

* The state of the repository association. *

*

* The valid repository association states are: *

*
    *
  • *

    * Associated: The repository association is complete. *

    *
  • *
  • *

    * Associating: CodeGuru Reviewer is: *

    *
      *
    • *

      * Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer review. *

      * *

      * If your repository ProviderType is GitHub, GitHub Enterprise Server, or * Bitbucket, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered. *

      *
    • *
    • *

      * Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your repository. *

      *
    • *
    *
  • *
  • *

    * Failed: The repository failed to associate or disassociate. *

    *
  • *
  • *

    * Disassociating: CodeGuru Reviewer is removing the repository's pull request notifications and source code * access. *

    *
  • *
  • *

    * Disassociated: CodeGuru Reviewer successfully disassociated the repository. You can create a new * association with this repository if you want to review source code in it later. You can control access to code * reviews created in anassociated repository with tags after it has been disassociated. For more information, see * Using * tags to control access to associated repositories in the Amazon CodeGuru Reviewer User Guide. *

    *
  • *
*/ private String state; /** *

* The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations. *

* * @param associationArn * The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations. */ public void setAssociationArn(String associationArn) { this.associationArn = associationArn; } /** *

* The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations. *

* * @return The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations. */ public String getAssociationArn() { return this.associationArn; } /** *

* The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations. *

* * @param associationArn * The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociationSummary withAssociationArn(String associationArn) { setAssociationArn(associationArn); return this; } /** *

* The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more * information, see Connection in * the Amazon Web Services CodeStar Connections API Reference. *

* * @param connectionArn * The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more * information, see Connection in the Amazon Web Services CodeStar Connections API Reference. */ public void setConnectionArn(String connectionArn) { this.connectionArn = connectionArn; } /** *

* The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more * information, see Connection in * the Amazon Web Services CodeStar Connections API Reference. *

* * @return The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more * information, see Connection in the Amazon Web Services CodeStar Connections API Reference. */ public String getConnectionArn() { return this.connectionArn; } /** *

* The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more * information, see Connection in * the Amazon Web Services CodeStar Connections API Reference. *

* * @param connectionArn * The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar Connections connection. Its format is * arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more * information, see Connection in the Amazon Web Services CodeStar Connections API Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociationSummary withConnectionArn(String connectionArn) { setConnectionArn(connectionArn); return this; } /** *

* The time, in milliseconds since the epoch, since the repository association was last updated. *

* * @param lastUpdatedTimeStamp * The time, in milliseconds since the epoch, since the repository association was last updated. */ public void setLastUpdatedTimeStamp(java.util.Date lastUpdatedTimeStamp) { this.lastUpdatedTimeStamp = lastUpdatedTimeStamp; } /** *

* The time, in milliseconds since the epoch, since the repository association was last updated. *

* * @return The time, in milliseconds since the epoch, since the repository association was last updated. */ public java.util.Date getLastUpdatedTimeStamp() { return this.lastUpdatedTimeStamp; } /** *

* The time, in milliseconds since the epoch, since the repository association was last updated. *

* * @param lastUpdatedTimeStamp * The time, in milliseconds since the epoch, since the repository association was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociationSummary withLastUpdatedTimeStamp(java.util.Date lastUpdatedTimeStamp) { setLastUpdatedTimeStamp(lastUpdatedTimeStamp); return this; } /** *

* The repository association ID. *

* * @param associationId * The repository association ID. */ public void setAssociationId(String associationId) { this.associationId = associationId; } /** *

* The repository association ID. *

* * @return The repository association ID. */ public String getAssociationId() { return this.associationId; } /** *

* The repository association ID. *

* * @param associationId * The repository association ID. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociationSummary withAssociationId(String associationId) { setAssociationId(associationId); return this; } /** *

* The name of the repository association. *

* * @param name * The name of the repository association. */ public void setName(String name) { this.name = name; } /** *

* The name of the repository association. *

* * @return The name of the repository association. */ public String getName() { return this.name; } /** *

* The name of the repository association. *

* * @param name * The name of the repository association. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociationSummary withName(String name) { setName(name); return this; } /** *

* The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services * account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket * repository, this is the username for the account that owns the repository. For an S3 repository, it can be the * username or Amazon Web Services account ID. *

* * @param owner * The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web * Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or * Bitbucket repository, this is the username for the account that owns the repository. For an S3 repository, * it can be the username or Amazon Web Services account ID. */ public void setOwner(String owner) { this.owner = owner; } /** *

* The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services * account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket * repository, this is the username for the account that owns the repository. For an S3 repository, it can be the * username or Amazon Web Services account ID. *

* * @return The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web * Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or * Bitbucket repository, this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID. */ public String getOwner() { return this.owner; } /** *

* The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services * account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket * repository, this is the username for the account that owns the repository. For an S3 repository, it can be the * username or Amazon Web Services account ID. *

* * @param owner * The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web * Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or * Bitbucket repository, this is the username for the account that owns the repository. For an S3 repository, * it can be the username or Amazon Web Services account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public RepositoryAssociationSummary withOwner(String owner) { setOwner(owner); return this; } /** *

* The provider type of the repository association. *

* * @param providerType * The provider type of the repository association. * @see ProviderType */ public void setProviderType(String providerType) { this.providerType = providerType; } /** *

* The provider type of the repository association. *

* * @return The provider type of the repository association. * @see ProviderType */ public String getProviderType() { return this.providerType; } /** *

* The provider type of the repository association. *

* * @param providerType * The provider type of the repository association. * @return Returns a reference to this object so that method calls can be chained together. * @see ProviderType */ public RepositoryAssociationSummary withProviderType(String providerType) { setProviderType(providerType); return this; } /** *

* The provider type of the repository association. *

* * @param providerType * The provider type of the repository association. * @return Returns a reference to this object so that method calls can be chained together. * @see ProviderType */ public RepositoryAssociationSummary withProviderType(ProviderType providerType) { this.providerType = providerType.toString(); return this; } /** *

* The state of the repository association. *

*

* The valid repository association states are: *

*
    *
  • *

    * Associated: The repository association is complete. *

    *
  • *
  • *

    * Associating: CodeGuru Reviewer is: *

    *
      *
    • *

      * Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer review. *

      * *

      * If your repository ProviderType is GitHub, GitHub Enterprise Server, or * Bitbucket, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered. *

      *
    • *
    • *

      * Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your repository. *

      *
    • *
    *
  • *
  • *

    * Failed: The repository failed to associate or disassociate. *

    *
  • *
  • *

    * Disassociating: CodeGuru Reviewer is removing the repository's pull request notifications and source code * access. *

    *
  • *
  • *

    * Disassociated: CodeGuru Reviewer successfully disassociated the repository. You can create a new * association with this repository if you want to review source code in it later. You can control access to code * reviews created in anassociated repository with tags after it has been disassociated. For more information, see * Using * tags to control access to associated repositories in the Amazon CodeGuru Reviewer User Guide. *

    *
  • *
* * @param state * The state of the repository association.

*

* The valid repository association states are: *

*
    *
  • *

    * Associated: The repository association is complete. *

    *
  • *
  • *

    * Associating: CodeGuru Reviewer is: *

    *
      *
    • *

      * Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer * review. *

      * *

      * If your repository ProviderType is GitHub, GitHub Enterprise Server * , or Bitbucket, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru * Reviewer reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered. *

      *
    • *
    • *

      * Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your * repository. *

      *
    • *
    *
  • *
  • *

    * Failed: The repository failed to associate or disassociate. *

    *
  • *
  • *

    * Disassociating: CodeGuru Reviewer is removing the repository's pull request notifications and * source code access. *

    *
  • *
  • *

    * Disassociated: CodeGuru Reviewer successfully disassociated the repository. You can create a new * association with this repository if you want to review source code in it later. You can control access to * code reviews created in anassociated repository with tags after it has been disassociated. For more * information, see Using tags to control access to associated repositories in the Amazon CodeGuru Reviewer User * Guide. *

    *
  • * @see RepositoryAssociationState */ public void setState(String state) { this.state = state; } /** *

    * The state of the repository association. *

    *

    * The valid repository association states are: *

    *
      *
    • *

      * Associated: The repository association is complete. *

      *
    • *
    • *

      * Associating: CodeGuru Reviewer is: *

      *
        *
      • *

        * Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer review. *

        * *

        * If your repository ProviderType is GitHub, GitHub Enterprise Server, or * Bitbucket, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered. *

        *
      • *
      • *

        * Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your repository. *

        *
      • *
      *
    • *
    • *

      * Failed: The repository failed to associate or disassociate. *

      *
    • *
    • *

      * Disassociating: CodeGuru Reviewer is removing the repository's pull request notifications and source code * access. *

      *
    • *
    • *

      * Disassociated: CodeGuru Reviewer successfully disassociated the repository. You can create a new * association with this repository if you want to review source code in it later. You can control access to code * reviews created in anassociated repository with tags after it has been disassociated. For more information, see * Using * tags to control access to associated repositories in the Amazon CodeGuru Reviewer User Guide. *

      *
    • *
    * * @return The state of the repository association.

    *

    * The valid repository association states are: *

    *
      *
    • *

      * Associated: The repository association is complete. *

      *
    • *
    • *

      * Associating: CodeGuru Reviewer is: *

      *
        *
      • *

        * Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer * review. *

        * *

        * If your repository ProviderType is GitHub, * GitHub Enterprise Server, or Bitbucket, CodeGuru Reviewer creates webhooks in * your repository to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code in * your repository cannot be triggered. *

        *
      • *
      • *

        * Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your * repository. *

        *
      • *
      *
    • *
    • *

      * Failed: The repository failed to associate or disassociate. *

      *
    • *
    • *

      * Disassociating: CodeGuru Reviewer is removing the repository's pull request notifications and * source code access. *

      *
    • *
    • *

      * Disassociated: CodeGuru Reviewer successfully disassociated the repository. You can create a new * association with this repository if you want to review source code in it later. You can control access to * code reviews created in anassociated repository with tags after it has been disassociated. For more * information, see Using tags to control access to associated repositories in the Amazon CodeGuru Reviewer User * Guide. *

      *
    • * @see RepositoryAssociationState */ public String getState() { return this.state; } /** *

      * The state of the repository association. *

      *

      * The valid repository association states are: *

      *
        *
      • *

        * Associated: The repository association is complete. *

        *
      • *
      • *

        * Associating: CodeGuru Reviewer is: *

        *
          *
        • *

          * Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer review. *

          * *

          * If your repository ProviderType is GitHub, GitHub Enterprise Server, or * Bitbucket, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered. *

          *
        • *
        • *

          * Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your repository. *

          *
        • *
        *
      • *
      • *

        * Failed: The repository failed to associate or disassociate. *

        *
      • *
      • *

        * Disassociating: CodeGuru Reviewer is removing the repository's pull request notifications and source code * access. *

        *
      • *
      • *

        * Disassociated: CodeGuru Reviewer successfully disassociated the repository. You can create a new * association with this repository if you want to review source code in it later. You can control access to code * reviews created in anassociated repository with tags after it has been disassociated. For more information, see * Using * tags to control access to associated repositories in the Amazon CodeGuru Reviewer User Guide. *

        *
      • *
      * * @param state * The state of the repository association.

      *

      * The valid repository association states are: *

      *
        *
      • *

        * Associated: The repository association is complete. *

        *
      • *
      • *

        * Associating: CodeGuru Reviewer is: *

        *
          *
        • *

          * Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer * review. *

          * *

          * If your repository ProviderType is GitHub, GitHub Enterprise Server * , or Bitbucket, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru * Reviewer reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered. *

          *
        • *
        • *

          * Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your * repository. *

          *
        • *
        *
      • *
      • *

        * Failed: The repository failed to associate or disassociate. *

        *
      • *
      • *

        * Disassociating: CodeGuru Reviewer is removing the repository's pull request notifications and * source code access. *

        *
      • *
      • *

        * Disassociated: CodeGuru Reviewer successfully disassociated the repository. You can create a new * association with this repository if you want to review source code in it later. You can control access to * code reviews created in anassociated repository with tags after it has been disassociated. For more * information, see Using tags to control access to associated repositories in the Amazon CodeGuru Reviewer User * Guide. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see RepositoryAssociationState */ public RepositoryAssociationSummary withState(String state) { setState(state); return this; } /** *

        * The state of the repository association. *

        *

        * The valid repository association states are: *

        *
          *
        • *

          * Associated: The repository association is complete. *

          *
        • *
        • *

          * Associating: CodeGuru Reviewer is: *

          *
            *
          • *

            * Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer review. *

            * *

            * If your repository ProviderType is GitHub, GitHub Enterprise Server, or * Bitbucket, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer * reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered. *

            *
          • *
          • *

            * Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your repository. *

            *
          • *
          *
        • *
        • *

          * Failed: The repository failed to associate or disassociate. *

          *
        • *
        • *

          * Disassociating: CodeGuru Reviewer is removing the repository's pull request notifications and source code * access. *

          *
        • *
        • *

          * Disassociated: CodeGuru Reviewer successfully disassociated the repository. You can create a new * association with this repository if you want to review source code in it later. You can control access to code * reviews created in anassociated repository with tags after it has been disassociated. For more information, see * Using * tags to control access to associated repositories in the Amazon CodeGuru Reviewer User Guide. *

          *
        • *
        * * @param state * The state of the repository association.

        *

        * The valid repository association states are: *

        *
          *
        • *

          * Associated: The repository association is complete. *

          *
        • *
        • *

          * Associating: CodeGuru Reviewer is: *

          *
            *
          • *

            * Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer * review. *

            * *

            * If your repository ProviderType is GitHub, GitHub Enterprise Server * , or Bitbucket, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru * Reviewer reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered. *

            *
          • *
          • *

            * Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your * repository. *

            *
          • *
          *
        • *
        • *

          * Failed: The repository failed to associate or disassociate. *

          *
        • *
        • *

          * Disassociating: CodeGuru Reviewer is removing the repository's pull request notifications and * source code access. *

          *
        • *
        • *

          * Disassociated: CodeGuru Reviewer successfully disassociated the repository. You can create a new * association with this repository if you want to review source code in it later. You can control access to * code reviews created in anassociated repository with tags after it has been disassociated. For more * information, see Using tags to control access to associated repositories in the Amazon CodeGuru Reviewer User * Guide. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see RepositoryAssociationState */ public RepositoryAssociationSummary withState(RepositoryAssociationState state) { this.state = state.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAssociationArn() != null) sb.append("AssociationArn: ").append(getAssociationArn()).append(","); if (getConnectionArn() != null) sb.append("ConnectionArn: ").append(getConnectionArn()).append(","); if (getLastUpdatedTimeStamp() != null) sb.append("LastUpdatedTimeStamp: ").append(getLastUpdatedTimeStamp()).append(","); if (getAssociationId() != null) sb.append("AssociationId: ").append(getAssociationId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()).append(","); if (getProviderType() != null) sb.append("ProviderType: ").append(getProviderType()).append(","); if (getState() != null) sb.append("State: ").append(getState()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RepositoryAssociationSummary == false) return false; RepositoryAssociationSummary other = (RepositoryAssociationSummary) obj; if (other.getAssociationArn() == null ^ this.getAssociationArn() == null) return false; if (other.getAssociationArn() != null && other.getAssociationArn().equals(this.getAssociationArn()) == false) return false; if (other.getConnectionArn() == null ^ this.getConnectionArn() == null) return false; if (other.getConnectionArn() != null && other.getConnectionArn().equals(this.getConnectionArn()) == false) return false; if (other.getLastUpdatedTimeStamp() == null ^ this.getLastUpdatedTimeStamp() == null) return false; if (other.getLastUpdatedTimeStamp() != null && other.getLastUpdatedTimeStamp().equals(this.getLastUpdatedTimeStamp()) == false) return false; if (other.getAssociationId() == null ^ this.getAssociationId() == null) return false; if (other.getAssociationId() != null && other.getAssociationId().equals(this.getAssociationId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null) return false; if (other.getOwner() != null && other.getOwner().equals(this.getOwner()) == false) return false; if (other.getProviderType() == null ^ this.getProviderType() == null) return false; if (other.getProviderType() != null && other.getProviderType().equals(this.getProviderType()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssociationArn() == null) ? 0 : getAssociationArn().hashCode()); hashCode = prime * hashCode + ((getConnectionArn() == null) ? 0 : getConnectionArn().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTimeStamp() == null) ? 0 : getLastUpdatedTimeStamp().hashCode()); hashCode = prime * hashCode + ((getAssociationId() == null) ? 0 : getAssociationId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getProviderType() == null) ? 0 : getProviderType().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); return hashCode; } @Override public RepositoryAssociationSummary clone() { try { return (RepositoryAssociationSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.codegurureviewer.model.transform.RepositoryAssociationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy