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

com.amazonaws.services.wellarchitected.model.UpdateWorkloadRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Well-Architected Tool module holds the client classes that are used for communicating with AWS Well-Architected Tool Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.wellarchitected.model;

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

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Input to update a workload. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateWorkloadRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { private String workloadId; private String workloadName; private String description; private String environment; private java.util.List accountIds; private java.util.List awsRegions; private java.util.List nonAwsRegions; private java.util.List pillarPriorities; private String architecturalDesign; private String reviewOwner; /** *

* Flag indicating whether the workload owner has acknowledged that the Review owner field is required. *

*

* If a Review owner is not added to the workload within 60 days of acknowledgement, access to the workload * is restricted until an owner is added. *

*/ private Boolean isReviewOwnerUpdateAcknowledged; private String industryType; private String industry; private String notes; private String improvementStatus; /** *

* Well-Architected discovery configuration settings to associate to the workload. *

*/ private WorkloadDiscoveryConfig discoveryConfig; /** *

* List of AppRegistry application ARNs to associate to the workload. *

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

* Configuration of the Jira integration. *

*/ private WorkloadJiraConfigurationInput jiraConfiguration; /** * @param workloadId */ public void setWorkloadId(String workloadId) { this.workloadId = workloadId; } /** * @return */ public String getWorkloadId() { return this.workloadId; } /** * @param workloadId * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadRequest withWorkloadId(String workloadId) { setWorkloadId(workloadId); return this; } /** * @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 UpdateWorkloadRequest 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 UpdateWorkloadRequest 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 UpdateWorkloadRequest 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 UpdateWorkloadRequest withEnvironment(WorkloadEnvironment environment) { this.environment = environment.toString(); return this; } /** * @return */ public java.util.List getAccountIds() { return accountIds; } /** * @param accountIds */ public void setAccountIds(java.util.Collection accountIds) { if (accountIds == null) { this.accountIds = null; return; } this.accountIds = new java.util.ArrayList(accountIds); } /** *

* NOTE: 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. *

* * @param accountIds * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadRequest withAccountIds(String... accountIds) { if (this.accountIds == null) { setAccountIds(new java.util.ArrayList(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 UpdateWorkloadRequest withAccountIds(java.util.Collection accountIds) { setAccountIds(accountIds); return this; } /** * @return */ public java.util.List getAwsRegions() { return awsRegions; } /** * @param awsRegions */ public void setAwsRegions(java.util.Collection awsRegions) { if (awsRegions == null) { this.awsRegions = null; return; } this.awsRegions = new java.util.ArrayList(awsRegions); } /** *

* NOTE: 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. *

* * @param awsRegions * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadRequest withAwsRegions(String... awsRegions) { if (this.awsRegions == null) { setAwsRegions(new java.util.ArrayList(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 UpdateWorkloadRequest withAwsRegions(java.util.Collection awsRegions) { setAwsRegions(awsRegions); return this; } /** * @return */ public java.util.List getNonAwsRegions() { return nonAwsRegions; } /** * @param nonAwsRegions */ public void setNonAwsRegions(java.util.Collection nonAwsRegions) { if (nonAwsRegions == null) { this.nonAwsRegions = null; return; } this.nonAwsRegions = new java.util.ArrayList(nonAwsRegions); } /** *

* NOTE: 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. *

* * @param nonAwsRegions * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadRequest withNonAwsRegions(String... nonAwsRegions) { if (this.nonAwsRegions == null) { setNonAwsRegions(new java.util.ArrayList(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 UpdateWorkloadRequest withNonAwsRegions(java.util.Collection nonAwsRegions) { setNonAwsRegions(nonAwsRegions); return this; } /** * @return */ public java.util.List getPillarPriorities() { return pillarPriorities; } /** * @param pillarPriorities */ public void setPillarPriorities(java.util.Collection pillarPriorities) { if (pillarPriorities == null) { this.pillarPriorities = null; return; } this.pillarPriorities = new java.util.ArrayList(pillarPriorities); } /** *

* NOTE: 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. *

* * @param pillarPriorities * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadRequest withPillarPriorities(String... pillarPriorities) { if (this.pillarPriorities == null) { setPillarPriorities(new java.util.ArrayList(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 UpdateWorkloadRequest withPillarPriorities(java.util.Collection 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 UpdateWorkloadRequest 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 UpdateWorkloadRequest withReviewOwner(String reviewOwner) { setReviewOwner(reviewOwner); return this; } /** *

* Flag indicating whether the workload owner has acknowledged that the Review owner field is required. *

*

* If a Review owner is not added to the workload within 60 days of acknowledgement, access to the workload * is restricted until an owner is added. *

* * @param isReviewOwnerUpdateAcknowledged * Flag indicating whether the workload owner has acknowledged that the Review owner field is * required.

*

* If a Review owner is not added to the workload within 60 days of acknowledgement, access to the * workload is restricted until an owner is added. */ public void setIsReviewOwnerUpdateAcknowledged(Boolean isReviewOwnerUpdateAcknowledged) { this.isReviewOwnerUpdateAcknowledged = isReviewOwnerUpdateAcknowledged; } /** *

* Flag indicating whether the workload owner has acknowledged that the Review owner field is required. *

*

* If a Review owner is not added to the workload within 60 days of acknowledgement, access to the workload * is restricted until an owner is added. *

* * @return Flag indicating whether the workload owner has acknowledged that the Review owner field is * required.

*

* If a Review owner is not added to the workload within 60 days of acknowledgement, access to the * workload is restricted until an owner is added. */ public Boolean getIsReviewOwnerUpdateAcknowledged() { return this.isReviewOwnerUpdateAcknowledged; } /** *

* Flag indicating whether the workload owner has acknowledged that the Review owner field is required. *

*

* If a Review owner is not added to the workload within 60 days of acknowledgement, access to the workload * is restricted until an owner is added. *

* * @param isReviewOwnerUpdateAcknowledged * Flag indicating whether the workload owner has acknowledged that the Review owner field is * required.

*

* If a Review owner is not added to the workload within 60 days of acknowledgement, access to the * workload is restricted until an owner is added. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadRequest withIsReviewOwnerUpdateAcknowledged(Boolean isReviewOwnerUpdateAcknowledged) { setIsReviewOwnerUpdateAcknowledged(isReviewOwnerUpdateAcknowledged); return this; } /** *

* Flag indicating whether the workload owner has acknowledged that the Review owner field is required. *

*

* If a Review owner is not added to the workload within 60 days of acknowledgement, access to the workload * is restricted until an owner is added. *

* * @return Flag indicating whether the workload owner has acknowledged that the Review owner field is * required.

*

* If a Review owner is not added to the workload within 60 days of acknowledgement, access to the * workload is restricted until an owner is added. */ public Boolean isReviewOwnerUpdateAcknowledged() { return this.isReviewOwnerUpdateAcknowledged; } /** * @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 UpdateWorkloadRequest 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 UpdateWorkloadRequest withIndustry(String industry) { setIndustry(industry); 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 UpdateWorkloadRequest withNotes(String notes) { setNotes(notes); return this; } /** * @param improvementStatus * @see WorkloadImprovementStatus */ public void setImprovementStatus(String improvementStatus) { this.improvementStatus = improvementStatus; } /** * @return * @see WorkloadImprovementStatus */ public String getImprovementStatus() { return this.improvementStatus; } /** * @param improvementStatus * @return Returns a reference to this object so that method calls can be chained together. * @see WorkloadImprovementStatus */ public UpdateWorkloadRequest withImprovementStatus(String improvementStatus) { setImprovementStatus(improvementStatus); return this; } /** * @param improvementStatus * @return Returns a reference to this object so that method calls can be chained together. * @see WorkloadImprovementStatus */ public UpdateWorkloadRequest withImprovementStatus(WorkloadImprovementStatus improvementStatus) { this.improvementStatus = improvementStatus.toString(); return this; } /** *

* Well-Architected discovery configuration settings to associate to the workload. *

* * @param discoveryConfig * Well-Architected discovery configuration settings to associate to the workload. */ public void setDiscoveryConfig(WorkloadDiscoveryConfig discoveryConfig) { this.discoveryConfig = discoveryConfig; } /** *

* Well-Architected discovery configuration settings to associate to the workload. *

* * @return Well-Architected discovery configuration settings to associate to the workload. */ public WorkloadDiscoveryConfig getDiscoveryConfig() { return this.discoveryConfig; } /** *

* Well-Architected discovery configuration settings to associate to the workload. *

* * @param discoveryConfig * Well-Architected discovery configuration settings to associate to the workload. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadRequest withDiscoveryConfig(WorkloadDiscoveryConfig discoveryConfig) { setDiscoveryConfig(discoveryConfig); return this; } /** *

* List of AppRegistry application ARNs to associate to the workload. *

* * @return List of AppRegistry application ARNs to associate to the workload. */ public java.util.List getApplications() { return applications; } /** *

* List of AppRegistry application ARNs to associate to the workload. *

* * @param applications * List of AppRegistry application ARNs to associate to the workload. */ public void setApplications(java.util.Collection applications) { if (applications == null) { this.applications = null; return; } this.applications = new java.util.ArrayList(applications); } /** *

* List of AppRegistry application ARNs to associate to the workload. *

*

* NOTE: 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. *

* * @param applications * List of AppRegistry application ARNs to associate to the workload. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadRequest withApplications(String... applications) { if (this.applications == null) { setApplications(new java.util.ArrayList(applications.length)); } for (String ele : applications) { this.applications.add(ele); } return this; } /** *

* List of AppRegistry application ARNs to associate to the workload. *

* * @param applications * List of AppRegistry application ARNs to associate to the workload. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadRequest withApplications(java.util.Collection applications) { setApplications(applications); return this; } /** *

* Configuration of the Jira integration. *

* * @param jiraConfiguration * Configuration of the Jira integration. */ public void setJiraConfiguration(WorkloadJiraConfigurationInput jiraConfiguration) { this.jiraConfiguration = jiraConfiguration; } /** *

* Configuration of the Jira integration. *

* * @return Configuration of the Jira integration. */ public WorkloadJiraConfigurationInput getJiraConfiguration() { return this.jiraConfiguration; } /** *

* Configuration of the Jira integration. *

* * @param jiraConfiguration * Configuration of the Jira integration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkloadRequest withJiraConfiguration(WorkloadJiraConfigurationInput jiraConfiguration) { setJiraConfiguration(jiraConfiguration); 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 (getWorkloadId() != null) sb.append("WorkloadId: ").append(getWorkloadId()).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 (getIsReviewOwnerUpdateAcknowledged() != null) sb.append("IsReviewOwnerUpdateAcknowledged: ").append(getIsReviewOwnerUpdateAcknowledged()).append(","); if (getIndustryType() != null) sb.append("IndustryType: ").append(getIndustryType()).append(","); if (getIndustry() != null) sb.append("Industry: ").append(getIndustry()).append(","); if (getNotes() != null) sb.append("Notes: ").append(getNotes()).append(","); if (getImprovementStatus() != null) sb.append("ImprovementStatus: ").append(getImprovementStatus()).append(","); if (getDiscoveryConfig() != null) sb.append("DiscoveryConfig: ").append(getDiscoveryConfig()).append(","); if (getApplications() != null) sb.append("Applications: ").append(getApplications()).append(","); if (getJiraConfiguration() != null) sb.append("JiraConfiguration: ").append(getJiraConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateWorkloadRequest == false) return false; UpdateWorkloadRequest other = (UpdateWorkloadRequest) obj; if (other.getWorkloadId() == null ^ this.getWorkloadId() == null) return false; if (other.getWorkloadId() != null && other.getWorkloadId().equals(this.getWorkloadId()) == false) return false; 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.getIsReviewOwnerUpdateAcknowledged() == null ^ this.getIsReviewOwnerUpdateAcknowledged() == null) return false; if (other.getIsReviewOwnerUpdateAcknowledged() != null && other.getIsReviewOwnerUpdateAcknowledged().equals(this.getIsReviewOwnerUpdateAcknowledged()) == 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.getNotes() == null ^ this.getNotes() == null) return false; if (other.getNotes() != null && other.getNotes().equals(this.getNotes()) == false) return false; if (other.getImprovementStatus() == null ^ this.getImprovementStatus() == null) return false; if (other.getImprovementStatus() != null && other.getImprovementStatus().equals(this.getImprovementStatus()) == 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.getJiraConfiguration() == null ^ this.getJiraConfiguration() == null) return false; if (other.getJiraConfiguration() != null && other.getJiraConfiguration().equals(this.getJiraConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWorkloadId() == null) ? 0 : getWorkloadId().hashCode()); 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 + ((getIsReviewOwnerUpdateAcknowledged() == null) ? 0 : getIsReviewOwnerUpdateAcknowledged().hashCode()); hashCode = prime * hashCode + ((getIndustryType() == null) ? 0 : getIndustryType().hashCode()); hashCode = prime * hashCode + ((getIndustry() == null) ? 0 : getIndustry().hashCode()); hashCode = prime * hashCode + ((getNotes() == null) ? 0 : getNotes().hashCode()); hashCode = prime * hashCode + ((getImprovementStatus() == null) ? 0 : getImprovementStatus().hashCode()); hashCode = prime * hashCode + ((getDiscoveryConfig() == null) ? 0 : getDiscoveryConfig().hashCode()); hashCode = prime * hashCode + ((getApplications() == null) ? 0 : getApplications().hashCode()); hashCode = prime * hashCode + ((getJiraConfiguration() == null) ? 0 : getJiraConfiguration().hashCode()); return hashCode; } @Override public UpdateWorkloadRequest clone() { return (UpdateWorkloadRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy