/* * 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.amplify.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *

* The request structure for the update branch request. *

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

* The unique ID for an Amplify app. *

*/ private String appId; /** *

* The name for the branch. *

*/ private String branchName; /** *

* The description for the branch. *

*/ private String description; /** *

* The framework for the branch. *

*/ private String framework; /** *

* Describes the current stage for the branch. *

*/ private String stage; /** *

* Enables notifications for the branch. *

*/ private Boolean enableNotification; /** *

* Enables auto building for the branch. *

*/ private Boolean enableAutoBuild; /** *

* The environment variables for the branch. *

*/ private java.util.Map environmentVariables; /** *

* The basic authorization credentials for the branch. You must base64-encode the authorization credentials and * provide them in the format user:password. *

*/ private String basicAuthCredentials; /** *

* Enables basic authorization for the branch. *

*/ private Boolean enableBasicAuth; /** *

* Enables performance mode for the branch. *

*

* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer * interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to * roll out. *

*/ private Boolean enablePerformanceMode; /** *

* The build specification (build spec) for the branch. *

*/ private String buildSpec; /** *

* The content Time to Live (TTL) for the website in seconds. *

*/ private String ttl; /** *

* The display name for a branch. This is used as the default domain prefix. *

*/ private String displayName; /** *

* Enables pull request previews for this branch. *

*/ private Boolean enablePullRequestPreview; /** *

* The Amplify environment name for the pull request. *

*/ private String pullRequestEnvironmentName; /** *

* The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. *

*/ private String backendEnvironmentArn; /** *

* The unique ID for an Amplify app. *

* * @param appId * The unique ID for an Amplify app. */ public void setAppId(String appId) { this.appId = appId; } /** *

* The unique ID for an Amplify app. *

* * @return The unique ID for an Amplify app. */ public String getAppId() { return this.appId; } /** *

* The unique ID for an Amplify app. *

* * @param appId * The unique ID for an Amplify app. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withAppId(String appId) { setAppId(appId); return this; } /** *

* The name for the branch. *

* * @param branchName * The name for the branch. */ public void setBranchName(String branchName) { this.branchName = branchName; } /** *

* The name for the branch. *

* * @return The name for the branch. */ public String getBranchName() { return this.branchName; } /** *

* The name for the branch. *

* * @param branchName * The name for the branch. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withBranchName(String branchName) { setBranchName(branchName); return this; } /** *

* The description for the branch. *

* * @param description * The description for the branch. */ public void setDescription(String description) { this.description = description; } /** *

* The description for the branch. *

* * @return The description for the branch. */ public String getDescription() { return this.description; } /** *

* The description for the branch. *

* * @param description * The description for the branch. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withDescription(String description) { setDescription(description); return this; } /** *

* The framework for the branch. *

* * @param framework * The framework for the branch. */ public void setFramework(String framework) { this.framework = framework; } /** *

* The framework for the branch. *

* * @return The framework for the branch. */ public String getFramework() { return this.framework; } /** *

* The framework for the branch. *

* * @param framework * The framework for the branch. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withFramework(String framework) { setFramework(framework); return this; } /** *

* Describes the current stage for the branch. *

* * @param stage * Describes the current stage for the branch. * @see Stage */ public void setStage(String stage) { this.stage = stage; } /** *

* Describes the current stage for the branch. *

* * @return Describes the current stage for the branch. * @see Stage */ public String getStage() { return this.stage; } /** *

* Describes the current stage for the branch. *

* * @param stage * Describes the current stage for the branch. * @return Returns a reference to this object so that method calls can be chained together. * @see Stage */ public UpdateBranchRequest withStage(String stage) { setStage(stage); return this; } /** *

* Describes the current stage for the branch. *

* * @param stage * Describes the current stage for the branch. * @return Returns a reference to this object so that method calls can be chained together. * @see Stage */ public UpdateBranchRequest withStage(Stage stage) { this.stage = stage.toString(); return this; } /** *

* Enables notifications for the branch. *

* * @param enableNotification * Enables notifications for the branch. */ public void setEnableNotification(Boolean enableNotification) { this.enableNotification = enableNotification; } /** *

* Enables notifications for the branch. *

* * @return Enables notifications for the branch. */ public Boolean getEnableNotification() { return this.enableNotification; } /** *

* Enables notifications for the branch. *

* * @param enableNotification * Enables notifications for the branch. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withEnableNotification(Boolean enableNotification) { setEnableNotification(enableNotification); return this; } /** *

* Enables notifications for the branch. *

* * @return Enables notifications for the branch. */ public Boolean isEnableNotification() { return this.enableNotification; } /** *

* Enables auto building for the branch. *

* * @param enableAutoBuild * Enables auto building for the branch. */ public void setEnableAutoBuild(Boolean enableAutoBuild) { this.enableAutoBuild = enableAutoBuild; } /** *

* Enables auto building for the branch. *

* * @return Enables auto building for the branch. */ public Boolean getEnableAutoBuild() { return this.enableAutoBuild; } /** *

* Enables auto building for the branch. *

* * @param enableAutoBuild * Enables auto building for the branch. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withEnableAutoBuild(Boolean enableAutoBuild) { setEnableAutoBuild(enableAutoBuild); return this; } /** *

* Enables auto building for the branch. *

* * @return Enables auto building for the branch. */ public Boolean isEnableAutoBuild() { return this.enableAutoBuild; } /** *

* The environment variables for the branch. *

* * @return The environment variables for the branch. */ public java.util.Map getEnvironmentVariables() { return environmentVariables; } /** *

* The environment variables for the branch. *

* * @param environmentVariables * The environment variables for the branch. */ public void setEnvironmentVariables(java.util.Map environmentVariables) { this.environmentVariables = environmentVariables; } /** *

* The environment variables for the branch. *

* * @param environmentVariables * The environment variables for the branch. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withEnvironmentVariables(java.util.Map environmentVariables) { setEnvironmentVariables(environmentVariables); return this; } /** * Add a single EnvironmentVariables entry * * @see UpdateBranchRequest#withEnvironmentVariables * @returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest addEnvironmentVariablesEntry(String key, String value) { if (null == this.environmentVariables) { this.environmentVariables = new java.util.HashMap(); } if (this.environmentVariables.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.environmentVariables.put(key, value); return this; } /** * Removes all the entries added into EnvironmentVariables. * * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest clearEnvironmentVariablesEntries() { this.environmentVariables = null; return this; } /** *

* The basic authorization credentials for the branch. You must base64-encode the authorization credentials and * provide them in the format user:password. *

* * @param basicAuthCredentials * The basic authorization credentials for the branch. You must base64-encode the authorization credentials * and provide them in the format user:password. */ public void setBasicAuthCredentials(String basicAuthCredentials) { this.basicAuthCredentials = basicAuthCredentials; } /** *

* The basic authorization credentials for the branch. You must base64-encode the authorization credentials and * provide them in the format user:password. *

* * @return The basic authorization credentials for the branch. You must base64-encode the authorization credentials * and provide them in the format user:password. */ public String getBasicAuthCredentials() { return this.basicAuthCredentials; } /** *

* The basic authorization credentials for the branch. You must base64-encode the authorization credentials and * provide them in the format user:password. *

* * @param basicAuthCredentials * The basic authorization credentials for the branch. You must base64-encode the authorization credentials * and provide them in the format user:password. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withBasicAuthCredentials(String basicAuthCredentials) { setBasicAuthCredentials(basicAuthCredentials); return this; } /** *

* Enables basic authorization for the branch. *

* * @param enableBasicAuth * Enables basic authorization for the branch. */ public void setEnableBasicAuth(Boolean enableBasicAuth) { this.enableBasicAuth = enableBasicAuth; } /** *

* Enables basic authorization for the branch. *

* * @return Enables basic authorization for the branch. */ public Boolean getEnableBasicAuth() { return this.enableBasicAuth; } /** *

* Enables basic authorization for the branch. *

* * @param enableBasicAuth * Enables basic authorization for the branch. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withEnableBasicAuth(Boolean enableBasicAuth) { setEnableBasicAuth(enableBasicAuth); return this; } /** *

* Enables basic authorization for the branch. *

* * @return Enables basic authorization for the branch. */ public Boolean isEnableBasicAuth() { return this.enableBasicAuth; } /** *

* Enables performance mode for the branch. *

*

* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer * interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to * roll out. *

* * @param enablePerformanceMode * Enables performance mode for the branch.

*

* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a * longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 * minutes to roll out. */ public void setEnablePerformanceMode(Boolean enablePerformanceMode) { this.enablePerformanceMode = enablePerformanceMode; } /** *

* Enables performance mode for the branch. *

*

* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer * interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to * roll out. *

* * @return Enables performance mode for the branch.

*

* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a * longer interval. When performance mode is enabled, hosting configuration or code changes can take up to * 10 minutes to roll out. */ public Boolean getEnablePerformanceMode() { return this.enablePerformanceMode; } /** *

* Enables performance mode for the branch. *

*

* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer * interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to * roll out. *

* * @param enablePerformanceMode * Enables performance mode for the branch.

*

* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a * longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 * minutes to roll out. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withEnablePerformanceMode(Boolean enablePerformanceMode) { setEnablePerformanceMode(enablePerformanceMode); return this; } /** *

* Enables performance mode for the branch. *

*

* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer * interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to * roll out. *

* * @return Enables performance mode for the branch.

*

* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a * longer interval. When performance mode is enabled, hosting configuration or code changes can take up to * 10 minutes to roll out. */ public Boolean isEnablePerformanceMode() { return this.enablePerformanceMode; } /** *

* The build specification (build spec) for the branch. *

* * @param buildSpec * The build specification (build spec) for the branch. */ public void setBuildSpec(String buildSpec) { this.buildSpec = buildSpec; } /** *

* The build specification (build spec) for the branch. *

* * @return The build specification (build spec) for the branch. */ public String getBuildSpec() { return this.buildSpec; } /** *

* The build specification (build spec) for the branch. *

* * @param buildSpec * The build specification (build spec) for the branch. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withBuildSpec(String buildSpec) { setBuildSpec(buildSpec); return this; } /** *

* The content Time to Live (TTL) for the website in seconds. *

* * @param ttl * The content Time to Live (TTL) for the website in seconds. */ public void setTtl(String ttl) { this.ttl = ttl; } /** *

* The content Time to Live (TTL) for the website in seconds. *

* * @return The content Time to Live (TTL) for the website in seconds. */ public String getTtl() { return this.ttl; } /** *

* The content Time to Live (TTL) for the website in seconds. *

* * @param ttl * The content Time to Live (TTL) for the website in seconds. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withTtl(String ttl) { setTtl(ttl); return this; } /** *

* The display name for a branch. This is used as the default domain prefix. *

* * @param displayName * The display name for a branch. This is used as the default domain prefix. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The display name for a branch. This is used as the default domain prefix. *

* * @return The display name for a branch. This is used as the default domain prefix. */ public String getDisplayName() { return this.displayName; } /** *

* The display name for a branch. This is used as the default domain prefix. *

* * @param displayName * The display name for a branch. This is used as the default domain prefix. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* Enables pull request previews for this branch. *

* * @param enablePullRequestPreview * Enables pull request previews for this branch. */ public void setEnablePullRequestPreview(Boolean enablePullRequestPreview) { this.enablePullRequestPreview = enablePullRequestPreview; } /** *

* Enables pull request previews for this branch. *

* * @return Enables pull request previews for this branch. */ public Boolean getEnablePullRequestPreview() { return this.enablePullRequestPreview; } /** *

* Enables pull request previews for this branch. *

* * @param enablePullRequestPreview * Enables pull request previews for this branch. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withEnablePullRequestPreview(Boolean enablePullRequestPreview) { setEnablePullRequestPreview(enablePullRequestPreview); return this; } /** *

* Enables pull request previews for this branch. *

* * @return Enables pull request previews for this branch. */ public Boolean isEnablePullRequestPreview() { return this.enablePullRequestPreview; } /** *

* The Amplify environment name for the pull request. *

* * @param pullRequestEnvironmentName * The Amplify environment name for the pull request. */ public void setPullRequestEnvironmentName(String pullRequestEnvironmentName) { this.pullRequestEnvironmentName = pullRequestEnvironmentName; } /** *

* The Amplify environment name for the pull request. *

* * @return The Amplify environment name for the pull request. */ public String getPullRequestEnvironmentName() { return this.pullRequestEnvironmentName; } /** *

* The Amplify environment name for the pull request. *

* * @param pullRequestEnvironmentName * The Amplify environment name for the pull request. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withPullRequestEnvironmentName(String pullRequestEnvironmentName) { setPullRequestEnvironmentName(pullRequestEnvironmentName); return this; } /** *

* The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. *

* * @param backendEnvironmentArn * The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. */ public void setBackendEnvironmentArn(String backendEnvironmentArn) { this.backendEnvironmentArn = backendEnvironmentArn; } /** *

* The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. *

* * @return The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. */ public String getBackendEnvironmentArn() { return this.backendEnvironmentArn; } /** *

* The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. *

* * @param backendEnvironmentArn * The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBranchRequest withBackendEnvironmentArn(String backendEnvironmentArn) { setBackendEnvironmentArn(backendEnvironmentArn); 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 (getAppId() != null) sb.append("AppId: ").append(getAppId()).append(","); if (getBranchName() != null) sb.append("BranchName: ").append(getBranchName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getFramework() != null) sb.append("Framework: ").append(getFramework()).append(","); if (getStage() != null) sb.append("Stage: ").append(getStage()).append(","); if (getEnableNotification() != null) sb.append("EnableNotification: ").append(getEnableNotification()).append(","); if (getEnableAutoBuild() != null) sb.append("EnableAutoBuild: ").append(getEnableAutoBuild()).append(","); if (getEnvironmentVariables() != null) sb.append("EnvironmentVariables: ").append(getEnvironmentVariables()).append(","); if (getBasicAuthCredentials() != null) sb.append("BasicAuthCredentials: ").append("***Sensitive Data Redacted***").append(","); if (getEnableBasicAuth() != null) sb.append("EnableBasicAuth: ").append(getEnableBasicAuth()).append(","); if (getEnablePerformanceMode() != null) sb.append("EnablePerformanceMode: ").append(getEnablePerformanceMode()).append(","); if (getBuildSpec() != null) sb.append("BuildSpec: ").append("***Sensitive Data Redacted***").append(","); if (getTtl() != null) sb.append("Ttl: ").append(getTtl()).append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getEnablePullRequestPreview() != null) sb.append("EnablePullRequestPreview: ").append(getEnablePullRequestPreview()).append(","); if (getPullRequestEnvironmentName() != null) sb.append("PullRequestEnvironmentName: ").append(getPullRequestEnvironmentName()).append(","); if (getBackendEnvironmentArn() != null) sb.append("BackendEnvironmentArn: ").append(getBackendEnvironmentArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateBranchRequest == false) return false; UpdateBranchRequest other = (UpdateBranchRequest) obj; if (other.getAppId() == null ^ this.getAppId() == null) return false; if (other.getAppId() != null && other.getAppId().equals(this.getAppId()) == false) return false; if (other.getBranchName() == null ^ this.getBranchName() == null) return false; if (other.getBranchName() != null && other.getBranchName().equals(this.getBranchName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getFramework() == null ^ this.getFramework() == null) return false; if (other.getFramework() != null && other.getFramework().equals(this.getFramework()) == false) return false; if (other.getStage() == null ^ this.getStage() == null) return false; if (other.getStage() != null && other.getStage().equals(this.getStage()) == false) return false; if (other.getEnableNotification() == null ^ this.getEnableNotification() == null) return false; if (other.getEnableNotification() != null && other.getEnableNotification().equals(this.getEnableNotification()) == false) return false; if (other.getEnableAutoBuild() == null ^ this.getEnableAutoBuild() == null) return false; if (other.getEnableAutoBuild() != null && other.getEnableAutoBuild().equals(this.getEnableAutoBuild()) == false) return false; if (other.getEnvironmentVariables() == null ^ this.getEnvironmentVariables() == null) return false; if (other.getEnvironmentVariables() != null && other.getEnvironmentVariables().equals(this.getEnvironmentVariables()) == false) return false; if (other.getBasicAuthCredentials() == null ^ this.getBasicAuthCredentials() == null) return false; if (other.getBasicAuthCredentials() != null && other.getBasicAuthCredentials().equals(this.getBasicAuthCredentials()) == false) return false; if (other.getEnableBasicAuth() == null ^ this.getEnableBasicAuth() == null) return false; if (other.getEnableBasicAuth() != null && other.getEnableBasicAuth().equals(this.getEnableBasicAuth()) == false) return false; if (other.getEnablePerformanceMode() == null ^ this.getEnablePerformanceMode() == null) return false; if (other.getEnablePerformanceMode() != null && other.getEnablePerformanceMode().equals(this.getEnablePerformanceMode()) == false) return false; if (other.getBuildSpec() == null ^ this.getBuildSpec() == null) return false; if (other.getBuildSpec() != null && other.getBuildSpec().equals(this.getBuildSpec()) == false) return false; if (other.getTtl() == null ^ this.getTtl() == null) return false; if (other.getTtl() != null && other.getTtl().equals(this.getTtl()) == false) return false; if (other.getDisplayName() == null ^ this.getDisplayName() == null) return false; if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false) return false; if (other.getEnablePullRequestPreview() == null ^ this.getEnablePullRequestPreview() == null) return false; if (other.getEnablePullRequestPreview() != null && other.getEnablePullRequestPreview().equals(this.getEnablePullRequestPreview()) == false) return false; if (other.getPullRequestEnvironmentName() == null ^ this.getPullRequestEnvironmentName() == null) return false; if (other.getPullRequestEnvironmentName() != null && other.getPullRequestEnvironmentName().equals(this.getPullRequestEnvironmentName()) == false) return false; if (other.getBackendEnvironmentArn() == null ^ this.getBackendEnvironmentArn() == null) return false; if (other.getBackendEnvironmentArn() != null && other.getBackendEnvironmentArn().equals(this.getBackendEnvironmentArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppId() == null) ? 0 : getAppId().hashCode()); hashCode = prime * hashCode + ((getBranchName() == null) ? 0 : getBranchName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getFramework() == null) ? 0 : getFramework().hashCode()); hashCode = prime * hashCode + ((getStage() == null) ? 0 : getStage().hashCode()); hashCode = prime * hashCode + ((getEnableNotification() == null) ? 0 : getEnableNotification().hashCode()); hashCode = prime * hashCode + ((getEnableAutoBuild() == null) ? 0 : getEnableAutoBuild().hashCode()); hashCode = prime * hashCode + ((getEnvironmentVariables() == null) ? 0 : getEnvironmentVariables().hashCode()); hashCode = prime * hashCode + ((getBasicAuthCredentials() == null) ? 0 : getBasicAuthCredentials().hashCode()); hashCode = prime * hashCode + ((getEnableBasicAuth() == null) ? 0 : getEnableBasicAuth().hashCode()); hashCode = prime * hashCode + ((getEnablePerformanceMode() == null) ? 0 : getEnablePerformanceMode().hashCode()); hashCode = prime * hashCode + ((getBuildSpec() == null) ? 0 : getBuildSpec().hashCode()); hashCode = prime * hashCode + ((getTtl() == null) ? 0 : getTtl().hashCode()); hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getEnablePullRequestPreview() == null) ? 0 : getEnablePullRequestPreview().hashCode()); hashCode = prime * hashCode + ((getPullRequestEnvironmentName() == null) ? 0 : getPullRequestEnvironmentName().hashCode()); hashCode = prime * hashCode + ((getBackendEnvironmentArn() == null) ? 0 : getBackendEnvironmentArn().hashCode()); return hashCode; } @Override public UpdateBranchRequest clone() { return (UpdateBranchRequest) super.clone(); } }