/*
 * 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.wellarchitected.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * <p>
 * Input for workload creation.
 * </p>
 * 
 * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/CreateWorkload" target="_top">AWS API
 *      Documentation</a>
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateWorkloadRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    private String workloadName;

    private String description;

    private String environment;

    private java.util.List<String> accountIds;

    private java.util.List<String> awsRegions;

    private java.util.List<String> nonAwsRegions;

    private java.util.List<String> pillarPriorities;

    private String architecturalDesign;

    private String reviewOwner;

    private String industryType;

    private String industry;

    private java.util.List<String> lenses;

    private String notes;

    private String clientRequestToken;
    /**
     * <p>
     * The tags to be associated with the workload.
     * </p>
     */
    private java.util.Map<String, String> tags;
    /**
     * <p>
     * Well-Architected discovery configuration settings associated to the workload.
     * </p>
     */
    private WorkloadDiscoveryConfig discoveryConfig;
    /**
     * <p>
     * List of AppRegistry application ARNs associated to the workload.
     * </p>
     */
    private java.util.List<String> applications;
    /**
     * <p>
     * The list of profile ARNs associated with the workload.
     * </p>
     */
    private java.util.List<String> profileArns;

    /**
     * @param workloadName
     */

    public void setWorkloadName(String workloadName) {
        this.workloadName = workloadName;
    }

    /**
     * @return
     */

    public String getWorkloadName() {
        return this.workloadName;
    }

    /**
     * @param workloadName
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withWorkloadName(String workloadName) {
        setWorkloadName(workloadName);
        return this;
    }

    /**
     * @param description
     */

    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return
     */

    public String getDescription() {
        return this.description;
    }

    /**
     * @param description
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withDescription(String description) {
        setDescription(description);
        return this;
    }

    /**
     * @param environment
     * @see WorkloadEnvironment
     */

    public void setEnvironment(String environment) {
        this.environment = environment;
    }

    /**
     * @return
     * @see WorkloadEnvironment
     */

    public String getEnvironment() {
        return this.environment;
    }

    /**
     * @param environment
     * @return Returns a reference to this object so that method calls can be chained together.
     * @see WorkloadEnvironment
     */

    public CreateWorkloadRequest withEnvironment(String environment) {
        setEnvironment(environment);
        return this;
    }

    /**
     * @param environment
     * @return Returns a reference to this object so that method calls can be chained together.
     * @see WorkloadEnvironment
     */

    public CreateWorkloadRequest withEnvironment(WorkloadEnvironment environment) {
        this.environment = environment.toString();
        return this;
    }

    /**
     * @return
     */

    public java.util.List<String> getAccountIds() {
        return accountIds;
    }

    /**
     * @param accountIds
     */

    public void setAccountIds(java.util.Collection<String> accountIds) {
        if (accountIds == null) {
            this.accountIds = null;
            return;
        }

        this.accountIds = new java.util.ArrayList<String>(accountIds);
    }

    /**
     * <p>
     * <b>NOTE:</b> This method appends the values to the existing list (if any). Use
     * {@link #setAccountIds(java.util.Collection)} or {@link #withAccountIds(java.util.Collection)} if you want to
     * override the existing values.
     * </p>
     * 
     * @param accountIds
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withAccountIds(String... accountIds) {
        if (this.accountIds == null) {
            setAccountIds(new java.util.ArrayList<String>(accountIds.length));
        }
        for (String ele : accountIds) {
            this.accountIds.add(ele);
        }
        return this;
    }

    /**
     * @param accountIds
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withAccountIds(java.util.Collection<String> accountIds) {
        setAccountIds(accountIds);
        return this;
    }

    /**
     * @return
     */

    public java.util.List<String> getAwsRegions() {
        return awsRegions;
    }

    /**
     * @param awsRegions
     */

    public void setAwsRegions(java.util.Collection<String> awsRegions) {
        if (awsRegions == null) {
            this.awsRegions = null;
            return;
        }

        this.awsRegions = new java.util.ArrayList<String>(awsRegions);
    }

    /**
     * <p>
     * <b>NOTE:</b> This method appends the values to the existing list (if any). Use
     * {@link #setAwsRegions(java.util.Collection)} or {@link #withAwsRegions(java.util.Collection)} if you want to
     * override the existing values.
     * </p>
     * 
     * @param awsRegions
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withAwsRegions(String... awsRegions) {
        if (this.awsRegions == null) {
            setAwsRegions(new java.util.ArrayList<String>(awsRegions.length));
        }
        for (String ele : awsRegions) {
            this.awsRegions.add(ele);
        }
        return this;
    }

    /**
     * @param awsRegions
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withAwsRegions(java.util.Collection<String> awsRegions) {
        setAwsRegions(awsRegions);
        return this;
    }

    /**
     * @return
     */

    public java.util.List<String> getNonAwsRegions() {
        return nonAwsRegions;
    }

    /**
     * @param nonAwsRegions
     */

    public void setNonAwsRegions(java.util.Collection<String> nonAwsRegions) {
        if (nonAwsRegions == null) {
            this.nonAwsRegions = null;
            return;
        }

        this.nonAwsRegions = new java.util.ArrayList<String>(nonAwsRegions);
    }

    /**
     * <p>
     * <b>NOTE:</b> This method appends the values to the existing list (if any). Use
     * {@link #setNonAwsRegions(java.util.Collection)} or {@link #withNonAwsRegions(java.util.Collection)} if you want
     * to override the existing values.
     * </p>
     * 
     * @param nonAwsRegions
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withNonAwsRegions(String... nonAwsRegions) {
        if (this.nonAwsRegions == null) {
            setNonAwsRegions(new java.util.ArrayList<String>(nonAwsRegions.length));
        }
        for (String ele : nonAwsRegions) {
            this.nonAwsRegions.add(ele);
        }
        return this;
    }

    /**
     * @param nonAwsRegions
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withNonAwsRegions(java.util.Collection<String> nonAwsRegions) {
        setNonAwsRegions(nonAwsRegions);
        return this;
    }

    /**
     * @return
     */

    public java.util.List<String> getPillarPriorities() {
        return pillarPriorities;
    }

    /**
     * @param pillarPriorities
     */

    public void setPillarPriorities(java.util.Collection<String> pillarPriorities) {
        if (pillarPriorities == null) {
            this.pillarPriorities = null;
            return;
        }

        this.pillarPriorities = new java.util.ArrayList<String>(pillarPriorities);
    }

    /**
     * <p>
     * <b>NOTE:</b> This method appends the values to the existing list (if any). Use
     * {@link #setPillarPriorities(java.util.Collection)} or {@link #withPillarPriorities(java.util.Collection)} if you
     * want to override the existing values.
     * </p>
     * 
     * @param pillarPriorities
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withPillarPriorities(String... pillarPriorities) {
        if (this.pillarPriorities == null) {
            setPillarPriorities(new java.util.ArrayList<String>(pillarPriorities.length));
        }
        for (String ele : pillarPriorities) {
            this.pillarPriorities.add(ele);
        }
        return this;
    }

    /**
     * @param pillarPriorities
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withPillarPriorities(java.util.Collection<String> pillarPriorities) {
        setPillarPriorities(pillarPriorities);
        return this;
    }

    /**
     * @param architecturalDesign
     */

    public void setArchitecturalDesign(String architecturalDesign) {
        this.architecturalDesign = architecturalDesign;
    }

    /**
     * @return
     */

    public String getArchitecturalDesign() {
        return this.architecturalDesign;
    }

    /**
     * @param architecturalDesign
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withArchitecturalDesign(String architecturalDesign) {
        setArchitecturalDesign(architecturalDesign);
        return this;
    }

    /**
     * @param reviewOwner
     */

    public void setReviewOwner(String reviewOwner) {
        this.reviewOwner = reviewOwner;
    }

    /**
     * @return
     */

    public String getReviewOwner() {
        return this.reviewOwner;
    }

    /**
     * @param reviewOwner
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withReviewOwner(String reviewOwner) {
        setReviewOwner(reviewOwner);
        return this;
    }

    /**
     * @param industryType
     */

    public void setIndustryType(String industryType) {
        this.industryType = industryType;
    }

    /**
     * @return
     */

    public String getIndustryType() {
        return this.industryType;
    }

    /**
     * @param industryType
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withIndustryType(String industryType) {
        setIndustryType(industryType);
        return this;
    }

    /**
     * @param industry
     */

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    /**
     * @return
     */

    public String getIndustry() {
        return this.industry;
    }

    /**
     * @param industry
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withIndustry(String industry) {
        setIndustry(industry);
        return this;
    }

    /**
     * @return
     */

    public java.util.List<String> getLenses() {
        return lenses;
    }

    /**
     * @param lenses
     */

    public void setLenses(java.util.Collection<String> lenses) {
        if (lenses == null) {
            this.lenses = null;
            return;
        }

        this.lenses = new java.util.ArrayList<String>(lenses);
    }

    /**
     * <p>
     * <b>NOTE:</b> This method appends the values to the existing list (if any). Use
     * {@link #setLenses(java.util.Collection)} or {@link #withLenses(java.util.Collection)} if you want to override the
     * existing values.
     * </p>
     * 
     * @param lenses
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withLenses(String... lenses) {
        if (this.lenses == null) {
            setLenses(new java.util.ArrayList<String>(lenses.length));
        }
        for (String ele : lenses) {
            this.lenses.add(ele);
        }
        return this;
    }

    /**
     * @param lenses
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withLenses(java.util.Collection<String> lenses) {
        setLenses(lenses);
        return this;
    }

    /**
     * @param notes
     */

    public void setNotes(String notes) {
        this.notes = notes;
    }

    /**
     * @return
     */

    public String getNotes() {
        return this.notes;
    }

    /**
     * @param notes
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withNotes(String notes) {
        setNotes(notes);
        return this;
    }

    /**
     * @param clientRequestToken
     */

    public void setClientRequestToken(String clientRequestToken) {
        this.clientRequestToken = clientRequestToken;
    }

    /**
     * @return
     */

    public String getClientRequestToken() {
        return this.clientRequestToken;
    }

    /**
     * @param clientRequestToken
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withClientRequestToken(String clientRequestToken) {
        setClientRequestToken(clientRequestToken);
        return this;
    }

    /**
     * <p>
     * The tags to be associated with the workload.
     * </p>
     * 
     * @return The tags to be associated with the workload.
     */

    public java.util.Map<String, String> getTags() {
        return tags;
    }

    /**
     * <p>
     * The tags to be associated with the workload.
     * </p>
     * 
     * @param tags
     *        The tags to be associated with the workload.
     */

    public void setTags(java.util.Map<String, String> tags) {
        this.tags = tags;
    }

    /**
     * <p>
     * The tags to be associated with the workload.
     * </p>
     * 
     * @param tags
     *        The tags to be associated with the workload.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }

    /**
     * Add a single Tags entry
     *
     * @see CreateWorkloadRequest#withTags
     * @returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest addTagsEntry(String key, String value) {
        if (null == this.tags) {
            this.tags = new java.util.HashMap<String, String>();
        }
        if (this.tags.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.tags.put(key, value);
        return this;
    }

    /**
     * Removes all the entries added into Tags.
     *
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest clearTagsEntries() {
        this.tags = null;
        return this;
    }

    /**
     * <p>
     * Well-Architected discovery configuration settings associated to the workload.
     * </p>
     * 
     * @param discoveryConfig
     *        Well-Architected discovery configuration settings associated to the workload.
     */

    public void setDiscoveryConfig(WorkloadDiscoveryConfig discoveryConfig) {
        this.discoveryConfig = discoveryConfig;
    }

    /**
     * <p>
     * Well-Architected discovery configuration settings associated to the workload.
     * </p>
     * 
     * @return Well-Architected discovery configuration settings associated to the workload.
     */

    public WorkloadDiscoveryConfig getDiscoveryConfig() {
        return this.discoveryConfig;
    }

    /**
     * <p>
     * Well-Architected discovery configuration settings associated to the workload.
     * </p>
     * 
     * @param discoveryConfig
     *        Well-Architected discovery configuration settings associated to the workload.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withDiscoveryConfig(WorkloadDiscoveryConfig discoveryConfig) {
        setDiscoveryConfig(discoveryConfig);
        return this;
    }

    /**
     * <p>
     * List of AppRegistry application ARNs associated to the workload.
     * </p>
     * 
     * @return List of AppRegistry application ARNs associated to the workload.
     */

    public java.util.List<String> getApplications() {
        return applications;
    }

    /**
     * <p>
     * List of AppRegistry application ARNs associated to the workload.
     * </p>
     * 
     * @param applications
     *        List of AppRegistry application ARNs associated to the workload.
     */

    public void setApplications(java.util.Collection<String> applications) {
        if (applications == null) {
            this.applications = null;
            return;
        }

        this.applications = new java.util.ArrayList<String>(applications);
    }

    /**
     * <p>
     * List of AppRegistry application ARNs associated to the workload.
     * </p>
     * <p>
     * <b>NOTE:</b> This method appends the values to the existing list (if any). Use
     * {@link #setApplications(java.util.Collection)} or {@link #withApplications(java.util.Collection)} if you want to
     * override the existing values.
     * </p>
     * 
     * @param applications
     *        List of AppRegistry application ARNs associated to the workload.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withApplications(String... applications) {
        if (this.applications == null) {
            setApplications(new java.util.ArrayList<String>(applications.length));
        }
        for (String ele : applications) {
            this.applications.add(ele);
        }
        return this;
    }

    /**
     * <p>
     * List of AppRegistry application ARNs associated to the workload.
     * </p>
     * 
     * @param applications
     *        List of AppRegistry application ARNs associated to the workload.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withApplications(java.util.Collection<String> applications) {
        setApplications(applications);
        return this;
    }

    /**
     * <p>
     * The list of profile ARNs associated with the workload.
     * </p>
     * 
     * @return The list of profile ARNs associated with the workload.
     */

    public java.util.List<String> getProfileArns() {
        return profileArns;
    }

    /**
     * <p>
     * The list of profile ARNs associated with the workload.
     * </p>
     * 
     * @param profileArns
     *        The list of profile ARNs associated with the workload.
     */

    public void setProfileArns(java.util.Collection<String> profileArns) {
        if (profileArns == null) {
            this.profileArns = null;
            return;
        }

        this.profileArns = new java.util.ArrayList<String>(profileArns);
    }

    /**
     * <p>
     * The list of profile ARNs associated with the workload.
     * </p>
     * <p>
     * <b>NOTE:</b> This method appends the values to the existing list (if any). Use
     * {@link #setProfileArns(java.util.Collection)} or {@link #withProfileArns(java.util.Collection)} if you want to
     * override the existing values.
     * </p>
     * 
     * @param profileArns
     *        The list of profile ARNs associated with the workload.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withProfileArns(String... profileArns) {
        if (this.profileArns == null) {
            setProfileArns(new java.util.ArrayList<String>(profileArns.length));
        }
        for (String ele : profileArns) {
            this.profileArns.add(ele);
        }
        return this;
    }

    /**
     * <p>
     * The list of profile ARNs associated with the workload.
     * </p>
     * 
     * @param profileArns
     *        The list of profile ARNs associated with the workload.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateWorkloadRequest withProfileArns(java.util.Collection<String> profileArns) {
        setProfileArns(profileArns);
        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 (getWorkloadName() != null)
            sb.append("WorkloadName: ").append(getWorkloadName()).append(",");
        if (getDescription() != null)
            sb.append("Description: ").append(getDescription()).append(",");
        if (getEnvironment() != null)
            sb.append("Environment: ").append(getEnvironment()).append(",");
        if (getAccountIds() != null)
            sb.append("AccountIds: ").append(getAccountIds()).append(",");
        if (getAwsRegions() != null)
            sb.append("AwsRegions: ").append(getAwsRegions()).append(",");
        if (getNonAwsRegions() != null)
            sb.append("NonAwsRegions: ").append(getNonAwsRegions()).append(",");
        if (getPillarPriorities() != null)
            sb.append("PillarPriorities: ").append(getPillarPriorities()).append(",");
        if (getArchitecturalDesign() != null)
            sb.append("ArchitecturalDesign: ").append(getArchitecturalDesign()).append(",");
        if (getReviewOwner() != null)
            sb.append("ReviewOwner: ").append(getReviewOwner()).append(",");
        if (getIndustryType() != null)
            sb.append("IndustryType: ").append(getIndustryType()).append(",");
        if (getIndustry() != null)
            sb.append("Industry: ").append(getIndustry()).append(",");
        if (getLenses() != null)
            sb.append("Lenses: ").append(getLenses()).append(",");
        if (getNotes() != null)
            sb.append("Notes: ").append(getNotes()).append(",");
        if (getClientRequestToken() != null)
            sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(",");
        if (getTags() != null)
            sb.append("Tags: ").append(getTags()).append(",");
        if (getDiscoveryConfig() != null)
            sb.append("DiscoveryConfig: ").append(getDiscoveryConfig()).append(",");
        if (getApplications() != null)
            sb.append("Applications: ").append(getApplications()).append(",");
        if (getProfileArns() != null)
            sb.append("ProfileArns: ").append(getProfileArns());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof CreateWorkloadRequest == false)
            return false;
        CreateWorkloadRequest other = (CreateWorkloadRequest) obj;
        if (other.getWorkloadName() == null ^ this.getWorkloadName() == null)
            return false;
        if (other.getWorkloadName() != null && other.getWorkloadName().equals(this.getWorkloadName()) == 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.getEnvironment() == null ^ this.getEnvironment() == null)
            return false;
        if (other.getEnvironment() != null && other.getEnvironment().equals(this.getEnvironment()) == false)
            return false;
        if (other.getAccountIds() == null ^ this.getAccountIds() == null)
            return false;
        if (other.getAccountIds() != null && other.getAccountIds().equals(this.getAccountIds()) == false)
            return false;
        if (other.getAwsRegions() == null ^ this.getAwsRegions() == null)
            return false;
        if (other.getAwsRegions() != null && other.getAwsRegions().equals(this.getAwsRegions()) == false)
            return false;
        if (other.getNonAwsRegions() == null ^ this.getNonAwsRegions() == null)
            return false;
        if (other.getNonAwsRegions() != null && other.getNonAwsRegions().equals(this.getNonAwsRegions()) == false)
            return false;
        if (other.getPillarPriorities() == null ^ this.getPillarPriorities() == null)
            return false;
        if (other.getPillarPriorities() != null && other.getPillarPriorities().equals(this.getPillarPriorities()) == false)
            return false;
        if (other.getArchitecturalDesign() == null ^ this.getArchitecturalDesign() == null)
            return false;
        if (other.getArchitecturalDesign() != null && other.getArchitecturalDesign().equals(this.getArchitecturalDesign()) == false)
            return false;
        if (other.getReviewOwner() == null ^ this.getReviewOwner() == null)
            return false;
        if (other.getReviewOwner() != null && other.getReviewOwner().equals(this.getReviewOwner()) == false)
            return false;
        if (other.getIndustryType() == null ^ this.getIndustryType() == null)
            return false;
        if (other.getIndustryType() != null && other.getIndustryType().equals(this.getIndustryType()) == false)
            return false;
        if (other.getIndustry() == null ^ this.getIndustry() == null)
            return false;
        if (other.getIndustry() != null && other.getIndustry().equals(this.getIndustry()) == false)
            return false;
        if (other.getLenses() == null ^ this.getLenses() == null)
            return false;
        if (other.getLenses() != null && other.getLenses().equals(this.getLenses()) == false)
            return false;
        if (other.getNotes() == null ^ this.getNotes() == null)
            return false;
        if (other.getNotes() != null && other.getNotes().equals(this.getNotes()) == false)
            return false;
        if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null)
            return false;
        if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false)
            return false;
        if (other.getTags() == null ^ this.getTags() == null)
            return false;
        if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
            return false;
        if (other.getDiscoveryConfig() == null ^ this.getDiscoveryConfig() == null)
            return false;
        if (other.getDiscoveryConfig() != null && other.getDiscoveryConfig().equals(this.getDiscoveryConfig()) == false)
            return false;
        if (other.getApplications() == null ^ this.getApplications() == null)
            return false;
        if (other.getApplications() != null && other.getApplications().equals(this.getApplications()) == false)
            return false;
        if (other.getProfileArns() == null ^ this.getProfileArns() == null)
            return false;
        if (other.getProfileArns() != null && other.getProfileArns().equals(this.getProfileArns()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getWorkloadName() == null) ? 0 : getWorkloadName().hashCode());
        hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
        hashCode = prime * hashCode + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode());
        hashCode = prime * hashCode + ((getAccountIds() == null) ? 0 : getAccountIds().hashCode());
        hashCode = prime * hashCode + ((getAwsRegions() == null) ? 0 : getAwsRegions().hashCode());
        hashCode = prime * hashCode + ((getNonAwsRegions() == null) ? 0 : getNonAwsRegions().hashCode());
        hashCode = prime * hashCode + ((getPillarPriorities() == null) ? 0 : getPillarPriorities().hashCode());
        hashCode = prime * hashCode + ((getArchitecturalDesign() == null) ? 0 : getArchitecturalDesign().hashCode());
        hashCode = prime * hashCode + ((getReviewOwner() == null) ? 0 : getReviewOwner().hashCode());
        hashCode = prime * hashCode + ((getIndustryType() == null) ? 0 : getIndustryType().hashCode());
        hashCode = prime * hashCode + ((getIndustry() == null) ? 0 : getIndustry().hashCode());
        hashCode = prime * hashCode + ((getLenses() == null) ? 0 : getLenses().hashCode());
        hashCode = prime * hashCode + ((getNotes() == null) ? 0 : getNotes().hashCode());
        hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode());
        hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
        hashCode = prime * hashCode + ((getDiscoveryConfig() == null) ? 0 : getDiscoveryConfig().hashCode());
        hashCode = prime * hashCode + ((getApplications() == null) ? 0 : getApplications().hashCode());
        hashCode = prime * hashCode + ((getProfileArns() == null) ? 0 : getProfileArns().hashCode());
        return hashCode;
    }

    @Override
    public CreateWorkloadRequest clone() {
        return (CreateWorkloadRequest) super.clone();
    }

}
