/* * 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; /** *
* 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* 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* 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* 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* 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* 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* 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* 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* 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* 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