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

com.amazonaws.services.codegurureviewer.model.CodeReview 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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2018-2023 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;

/**
 * 

* Information about a code review. A code review belongs to the associated repository that contains the reviewed code. *

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

* The name of the code review. *

*/ private String name; /** *

* The Amazon Resource Name (ARN) of the CodeReview object. *

*/ private String codeReviewArn; /** *

* The name of the repository. *

*/ private String repositoryName; /** *

* 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 type of repository that contains the reviewed code (for example, GitHub or Bitbucket). *

*/ private String providerType; /** *

* The valid code review states are: *

*
    *
  • *

    * Completed: The code review is complete. *

    *
  • *
  • *

    * Pending: The code review started and has not completed or failed. *

    *
  • *
  • *

    * Failed: The code review failed. *

    *
  • *
  • *

    * Deleting: The code review is being deleted. *

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

* The reason for the state of the code review. *

*/ private String stateReason; /** *

* The time, in milliseconds since the epoch, when the code review was created. *

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

* The time, in milliseconds since the epoch, when the code review was last updated. *

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

* The type of code review. *

*/ private String type; /** *

* The pull request ID for the code review. *

*/ private String pullRequestId; /** *

* The type of the source code for the code review. *

*/ private SourceCodeType sourceCodeType; /** *

* The Amazon Resource Name (ARN) of the RepositoryAssociation that contains the reviewed source code. You can retrieve associated repository ARNs by * calling * ListRepositoryAssociations. *

*/ private String associationArn; /** *

* The statistics from the code review. *

*/ private Metrics metrics; /** *

* The types of analysis performed during a repository analysis or a pull request review. You can specify either * Security, CodeQuality, or both. *

*/ private java.util.List analysisTypes; /** *

* The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration of the * CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the root directory of * your repository. *

*/ private String configFileState; /** *

* The name of the code review. *

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

* The name of the code review. *

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

* The name of the code review. *

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

* The Amazon Resource Name (ARN) of the CodeReview object. *

* * @param codeReviewArn * The Amazon Resource Name (ARN) of the CodeReview object. */ public void setCodeReviewArn(String codeReviewArn) { this.codeReviewArn = codeReviewArn; } /** *

* The Amazon Resource Name (ARN) of the CodeReview object. *

* * @return The Amazon Resource Name (ARN) of the CodeReview * object. */ public String getCodeReviewArn() { return this.codeReviewArn; } /** *

* The Amazon Resource Name (ARN) of the CodeReview object. *

* * @param codeReviewArn * The Amazon Resource Name (ARN) of the CodeReview object. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeReview withCodeReviewArn(String codeReviewArn) { setCodeReviewArn(codeReviewArn); return this; } /** *

* The name of the repository. *

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

* The name of the repository. *

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

* The name of the repository. *

* * @param repositoryName * The name of the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeReview withRepositoryName(String repositoryName) { setRepositoryName(repositoryName); 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 CodeReview withOwner(String owner) { setOwner(owner); return this; } /** *

* The type of repository that contains the reviewed code (for example, GitHub or Bitbucket). *

* * @param providerType * The type of repository that contains the reviewed code (for example, GitHub or Bitbucket). * @see ProviderType */ public void setProviderType(String providerType) { this.providerType = providerType; } /** *

* The type of repository that contains the reviewed code (for example, GitHub or Bitbucket). *

* * @return The type of repository that contains the reviewed code (for example, GitHub or Bitbucket). * @see ProviderType */ public String getProviderType() { return this.providerType; } /** *

* The type of repository that contains the reviewed code (for example, GitHub or Bitbucket). *

* * @param providerType * The type of repository that contains the reviewed code (for example, GitHub or Bitbucket). * @return Returns a reference to this object so that method calls can be chained together. * @see ProviderType */ public CodeReview withProviderType(String providerType) { setProviderType(providerType); return this; } /** *

* The type of repository that contains the reviewed code (for example, GitHub or Bitbucket). *

* * @param providerType * The type of repository that contains the reviewed code (for example, GitHub or Bitbucket). * @return Returns a reference to this object so that method calls can be chained together. * @see ProviderType */ public CodeReview withProviderType(ProviderType providerType) { this.providerType = providerType.toString(); return this; } /** *

* The valid code review states are: *

*
    *
  • *

    * Completed: The code review is complete. *

    *
  • *
  • *

    * Pending: The code review started and has not completed or failed. *

    *
  • *
  • *

    * Failed: The code review failed. *

    *
  • *
  • *

    * Deleting: The code review is being deleted. *

    *
  • *
* * @param state * The valid code review states are:

*
    *
  • *

    * Completed: The code review is complete. *

    *
  • *
  • *

    * Pending: The code review started and has not completed or failed. *

    *
  • *
  • *

    * Failed: The code review failed. *

    *
  • *
  • *

    * Deleting: The code review is being deleted. *

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

    * The valid code review states are: *

    *
      *
    • *

      * Completed: The code review is complete. *

      *
    • *
    • *

      * Pending: The code review started and has not completed or failed. *

      *
    • *
    • *

      * Failed: The code review failed. *

      *
    • *
    • *

      * Deleting: The code review is being deleted. *

      *
    • *
    * * @return The valid code review states are:

    *
      *
    • *

      * Completed: The code review is complete. *

      *
    • *
    • *

      * Pending: The code review started and has not completed or failed. *

      *
    • *
    • *

      * Failed: The code review failed. *

      *
    • *
    • *

      * Deleting: The code review is being deleted. *

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

      * The valid code review states are: *

      *
        *
      • *

        * Completed: The code review is complete. *

        *
      • *
      • *

        * Pending: The code review started and has not completed or failed. *

        *
      • *
      • *

        * Failed: The code review failed. *

        *
      • *
      • *

        * Deleting: The code review is being deleted. *

        *
      • *
      * * @param state * The valid code review states are:

      *
        *
      • *

        * Completed: The code review is complete. *

        *
      • *
      • *

        * Pending: The code review started and has not completed or failed. *

        *
      • *
      • *

        * Failed: The code review failed. *

        *
      • *
      • *

        * Deleting: The code review is being deleted. *

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

        * The valid code review states are: *

        *
          *
        • *

          * Completed: The code review is complete. *

          *
        • *
        • *

          * Pending: The code review started and has not completed or failed. *

          *
        • *
        • *

          * Failed: The code review failed. *

          *
        • *
        • *

          * Deleting: The code review is being deleted. *

          *
        • *
        * * @param state * The valid code review states are:

        *
          *
        • *

          * Completed: The code review is complete. *

          *
        • *
        • *

          * Pending: The code review started and has not completed or failed. *

          *
        • *
        • *

          * Failed: The code review failed. *

          *
        • *
        • *

          * Deleting: The code review is being deleted. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see JobState */ public CodeReview withState(JobState state) { this.state = state.toString(); return this; } /** *

          * The reason for the state of the code review. *

          * * @param stateReason * The reason for the state of the code review. */ public void setStateReason(String stateReason) { this.stateReason = stateReason; } /** *

          * The reason for the state of the code review. *

          * * @return The reason for the state of the code review. */ public String getStateReason() { return this.stateReason; } /** *

          * The reason for the state of the code review. *

          * * @param stateReason * The reason for the state of the code review. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeReview withStateReason(String stateReason) { setStateReason(stateReason); return this; } /** *

          * The time, in milliseconds since the epoch, when the code review was created. *

          * * @param createdTimeStamp * The time, in milliseconds since the epoch, when the code review was created. */ public void setCreatedTimeStamp(java.util.Date createdTimeStamp) { this.createdTimeStamp = createdTimeStamp; } /** *

          * The time, in milliseconds since the epoch, when the code review was created. *

          * * @return The time, in milliseconds since the epoch, when the code review was created. */ public java.util.Date getCreatedTimeStamp() { return this.createdTimeStamp; } /** *

          * The time, in milliseconds since the epoch, when the code review was created. *

          * * @param createdTimeStamp * The time, in milliseconds since the epoch, when the code review was created. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeReview withCreatedTimeStamp(java.util.Date createdTimeStamp) { setCreatedTimeStamp(createdTimeStamp); return this; } /** *

          * The time, in milliseconds since the epoch, when the code review was last updated. *

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

          * The time, in milliseconds since the epoch, when the code review was last updated. *

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

          * The time, in milliseconds since the epoch, when the code review was last updated. *

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

          * The type of code review. *

          * * @param type * The type of code review. * @see Type */ public void setType(String type) { this.type = type; } /** *

          * The type of code review. *

          * * @return The type of code review. * @see Type */ public String getType() { return this.type; } /** *

          * The type of code review. *

          * * @param type * The type of code review. * @return Returns a reference to this object so that method calls can be chained together. * @see Type */ public CodeReview withType(String type) { setType(type); return this; } /** *

          * The type of code review. *

          * * @param type * The type of code review. * @return Returns a reference to this object so that method calls can be chained together. * @see Type */ public CodeReview withType(Type type) { this.type = type.toString(); return this; } /** *

          * The pull request ID for the code review. *

          * * @param pullRequestId * The pull request ID for the code review. */ public void setPullRequestId(String pullRequestId) { this.pullRequestId = pullRequestId; } /** *

          * The pull request ID for the code review. *

          * * @return The pull request ID for the code review. */ public String getPullRequestId() { return this.pullRequestId; } /** *

          * The pull request ID for the code review. *

          * * @param pullRequestId * The pull request ID for the code review. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeReview withPullRequestId(String pullRequestId) { setPullRequestId(pullRequestId); return this; } /** *

          * The type of the source code for the code review. *

          * * @param sourceCodeType * The type of the source code for the code review. */ public void setSourceCodeType(SourceCodeType sourceCodeType) { this.sourceCodeType = sourceCodeType; } /** *

          * The type of the source code for the code review. *

          * * @return The type of the source code for the code review. */ public SourceCodeType getSourceCodeType() { return this.sourceCodeType; } /** *

          * The type of the source code for the code review. *

          * * @param sourceCodeType * The type of the source code for the code review. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeReview withSourceCodeType(SourceCodeType sourceCodeType) { setSourceCodeType(sourceCodeType); return this; } /** *

          * The Amazon Resource Name (ARN) of the RepositoryAssociation that contains the reviewed source code. You can retrieve associated repository ARNs by * calling * ListRepositoryAssociations. *

          * * @param associationArn * The Amazon Resource Name (ARN) of the RepositoryAssociation that contains the reviewed source code. You can retrieve associated repository * ARNs by calling ListRepositoryAssociations. */ public void setAssociationArn(String associationArn) { this.associationArn = associationArn; } /** *

          * The Amazon Resource Name (ARN) of the RepositoryAssociation that contains the reviewed source code. You can retrieve associated repository ARNs by * calling * ListRepositoryAssociations. *

          * * @return The Amazon Resource Name (ARN) of the RepositoryAssociation that contains the reviewed source code. You can retrieve associated repository * ARNs by calling ListRepositoryAssociations. */ public String getAssociationArn() { return this.associationArn; } /** *

          * The Amazon Resource Name (ARN) of the RepositoryAssociation that contains the reviewed source code. You can retrieve associated repository ARNs by * calling * ListRepositoryAssociations. *

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

          * The statistics from the code review. *

          * * @param metrics * The statistics from the code review. */ public void setMetrics(Metrics metrics) { this.metrics = metrics; } /** *

          * The statistics from the code review. *

          * * @return The statistics from the code review. */ public Metrics getMetrics() { return this.metrics; } /** *

          * The statistics from the code review. *

          * * @param metrics * The statistics from the code review. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeReview withMetrics(Metrics metrics) { setMetrics(metrics); return this; } /** *

          * The types of analysis performed during a repository analysis or a pull request review. You can specify either * Security, CodeQuality, or both. *

          * * @return The types of analysis performed during a repository analysis or a pull request review. You can specify * either Security, CodeQuality, or both. * @see AnalysisType */ public java.util.List getAnalysisTypes() { return analysisTypes; } /** *

          * The types of analysis performed during a repository analysis or a pull request review. You can specify either * Security, CodeQuality, or both. *

          * * @param analysisTypes * The types of analysis performed during a repository analysis or a pull request review. You can specify * either Security, CodeQuality, or both. * @see AnalysisType */ public void setAnalysisTypes(java.util.Collection analysisTypes) { if (analysisTypes == null) { this.analysisTypes = null; return; } this.analysisTypes = new java.util.ArrayList(analysisTypes); } /** *

          * The types of analysis performed during a repository analysis or a pull request review. You can specify either * Security, CodeQuality, or both. *

          *

          * NOTE: This method appends the values to the existing list (if any). Use * {@link #setAnalysisTypes(java.util.Collection)} or {@link #withAnalysisTypes(java.util.Collection)} if you want * to override the existing values. *

          * * @param analysisTypes * The types of analysis performed during a repository analysis or a pull request review. You can specify * either Security, CodeQuality, or both. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisType */ public CodeReview withAnalysisTypes(String... analysisTypes) { if (this.analysisTypes == null) { setAnalysisTypes(new java.util.ArrayList(analysisTypes.length)); } for (String ele : analysisTypes) { this.analysisTypes.add(ele); } return this; } /** *

          * The types of analysis performed during a repository analysis or a pull request review. You can specify either * Security, CodeQuality, or both. *

          * * @param analysisTypes * The types of analysis performed during a repository analysis or a pull request review. You can specify * either Security, CodeQuality, or both. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisType */ public CodeReview withAnalysisTypes(java.util.Collection analysisTypes) { setAnalysisTypes(analysisTypes); return this; } /** *

          * The types of analysis performed during a repository analysis or a pull request review. You can specify either * Security, CodeQuality, or both. *

          * * @param analysisTypes * The types of analysis performed during a repository analysis or a pull request review. You can specify * either Security, CodeQuality, or both. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisType */ public CodeReview withAnalysisTypes(AnalysisType... analysisTypes) { java.util.ArrayList analysisTypesCopy = new java.util.ArrayList(analysisTypes.length); for (AnalysisType value : analysisTypes) { analysisTypesCopy.add(value.toString()); } if (getAnalysisTypes() == null) { setAnalysisTypes(analysisTypesCopy); } else { getAnalysisTypes().addAll(analysisTypesCopy); } return this; } /** *

          * The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration of the * CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the root directory of * your repository. *

          * * @param configFileState * The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration * of the CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the * root directory of your repository. * @see ConfigFileState */ public void setConfigFileState(String configFileState) { this.configFileState = configFileState; } /** *

          * The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration of the * CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the root directory of * your repository. *

          * * @return The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration * of the CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the * root directory of your repository. * @see ConfigFileState */ public String getConfigFileState() { return this.configFileState; } /** *

          * The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration of the * CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the root directory of * your repository. *

          * * @param configFileState * The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration * of the CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the * root directory of your repository. * @return Returns a reference to this object so that method calls can be chained together. * @see ConfigFileState */ public CodeReview withConfigFileState(String configFileState) { setConfigFileState(configFileState); return this; } /** *

          * The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration of the * CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the root directory of * your repository. *

          * * @param configFileState * The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration * of the CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the * root directory of your repository. * @return Returns a reference to this object so that method calls can be chained together. * @see ConfigFileState */ public CodeReview withConfigFileState(ConfigFileState configFileState) { this.configFileState = configFileState.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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getCodeReviewArn() != null) sb.append("CodeReviewArn: ").append(getCodeReviewArn()).append(","); if (getRepositoryName() != null) sb.append("RepositoryName: ").append(getRepositoryName()).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()).append(","); if (getStateReason() != null) sb.append("StateReason: ").append(getStateReason()).append(","); if (getCreatedTimeStamp() != null) sb.append("CreatedTimeStamp: ").append(getCreatedTimeStamp()).append(","); if (getLastUpdatedTimeStamp() != null) sb.append("LastUpdatedTimeStamp: ").append(getLastUpdatedTimeStamp()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getPullRequestId() != null) sb.append("PullRequestId: ").append(getPullRequestId()).append(","); if (getSourceCodeType() != null) sb.append("SourceCodeType: ").append(getSourceCodeType()).append(","); if (getAssociationArn() != null) sb.append("AssociationArn: ").append(getAssociationArn()).append(","); if (getMetrics() != null) sb.append("Metrics: ").append(getMetrics()).append(","); if (getAnalysisTypes() != null) sb.append("AnalysisTypes: ").append(getAnalysisTypes()).append(","); if (getConfigFileState() != null) sb.append("ConfigFileState: ").append(getConfigFileState()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CodeReview == false) return false; CodeReview other = (CodeReview) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getCodeReviewArn() == null ^ this.getCodeReviewArn() == null) return false; if (other.getCodeReviewArn() != null && other.getCodeReviewArn().equals(this.getCodeReviewArn()) == false) return false; if (other.getRepositoryName() == null ^ this.getRepositoryName() == null) return false; if (other.getRepositoryName() != null && other.getRepositoryName().equals(this.getRepositoryName()) == 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; if (other.getStateReason() == null ^ this.getStateReason() == null) return false; if (other.getStateReason() != null && other.getStateReason().equals(this.getStateReason()) == false) return false; if (other.getCreatedTimeStamp() == null ^ this.getCreatedTimeStamp() == null) return false; if (other.getCreatedTimeStamp() != null && other.getCreatedTimeStamp().equals(this.getCreatedTimeStamp()) == 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.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getPullRequestId() == null ^ this.getPullRequestId() == null) return false; if (other.getPullRequestId() != null && other.getPullRequestId().equals(this.getPullRequestId()) == false) return false; if (other.getSourceCodeType() == null ^ this.getSourceCodeType() == null) return false; if (other.getSourceCodeType() != null && other.getSourceCodeType().equals(this.getSourceCodeType()) == false) return false; if (other.getAssociationArn() == null ^ this.getAssociationArn() == null) return false; if (other.getAssociationArn() != null && other.getAssociationArn().equals(this.getAssociationArn()) == false) return false; if (other.getMetrics() == null ^ this.getMetrics() == null) return false; if (other.getMetrics() != null && other.getMetrics().equals(this.getMetrics()) == false) return false; if (other.getAnalysisTypes() == null ^ this.getAnalysisTypes() == null) return false; if (other.getAnalysisTypes() != null && other.getAnalysisTypes().equals(this.getAnalysisTypes()) == false) return false; if (other.getConfigFileState() == null ^ this.getConfigFileState() == null) return false; if (other.getConfigFileState() != null && other.getConfigFileState().equals(this.getConfigFileState()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getCodeReviewArn() == null) ? 0 : getCodeReviewArn().hashCode()); hashCode = prime * hashCode + ((getRepositoryName() == null) ? 0 : getRepositoryName().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()); hashCode = prime * hashCode + ((getStateReason() == null) ? 0 : getStateReason().hashCode()); hashCode = prime * hashCode + ((getCreatedTimeStamp() == null) ? 0 : getCreatedTimeStamp().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTimeStamp() == null) ? 0 : getLastUpdatedTimeStamp().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getPullRequestId() == null) ? 0 : getPullRequestId().hashCode()); hashCode = prime * hashCode + ((getSourceCodeType() == null) ? 0 : getSourceCodeType().hashCode()); hashCode = prime * hashCode + ((getAssociationArn() == null) ? 0 : getAssociationArn().hashCode()); hashCode = prime * hashCode + ((getMetrics() == null) ? 0 : getMetrics().hashCode()); hashCode = prime * hashCode + ((getAnalysisTypes() == null) ? 0 : getAnalysisTypes().hashCode()); hashCode = prime * hashCode + ((getConfigFileState() == null) ? 0 : getConfigFileState().hashCode()); return hashCode; } @Override public CodeReview clone() { try { return (CodeReview) 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.CodeReviewMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy