/* * 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.opensearch.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The progress details of a specific domain configuration change. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ChangeProgressStatusDetails implements Serializable, Cloneable, StructuredPojo { /** ** The unique change identifier associated with a specific domain configuration change. *
*/ private String changeId; /** ** The time at which the configuration change is made on the domain. *
*/ private java.util.Date startTime; /** ** The overall status of the domain configuration change. *
*/ private String status; /** ** The list of properties in the domain configuration change that are still pending. *
*/ private java.util.List* The list of properties in the domain configuration change that have completed. *
*/ private java.util.List* The total number of stages required for the configuration change. *
*/ private Integer totalNumberOfStages; /** ** The specific stages that the domain is going through to perform the configuration change. *
*/ private java.util.List* The unique change identifier associated with a specific domain configuration change. *
* * @param changeId * The unique change identifier associated with a specific domain configuration change. */ public void setChangeId(String changeId) { this.changeId = changeId; } /** ** The unique change identifier associated with a specific domain configuration change. *
* * @return The unique change identifier associated with a specific domain configuration change. */ public String getChangeId() { return this.changeId; } /** ** The unique change identifier associated with a specific domain configuration change. *
* * @param changeId * The unique change identifier associated with a specific domain configuration change. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeProgressStatusDetails withChangeId(String changeId) { setChangeId(changeId); return this; } /** ** The time at which the configuration change is made on the domain. *
* * @param startTime * The time at which the configuration change is made on the domain. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** The time at which the configuration change is made on the domain. *
* * @return The time at which the configuration change is made on the domain. */ public java.util.Date getStartTime() { return this.startTime; } /** ** The time at which the configuration change is made on the domain. *
* * @param startTime * The time at which the configuration change is made on the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeProgressStatusDetails withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** The overall status of the domain configuration change. *
* * @param status * The overall status of the domain configuration change. * @see OverallChangeStatus */ public void setStatus(String status) { this.status = status; } /** ** The overall status of the domain configuration change. *
* * @return The overall status of the domain configuration change. * @see OverallChangeStatus */ public String getStatus() { return this.status; } /** ** The overall status of the domain configuration change. *
* * @param status * The overall status of the domain configuration change. * @return Returns a reference to this object so that method calls can be chained together. * @see OverallChangeStatus */ public ChangeProgressStatusDetails withStatus(String status) { setStatus(status); return this; } /** ** The overall status of the domain configuration change. *
* * @param status * The overall status of the domain configuration change. * @return Returns a reference to this object so that method calls can be chained together. * @see OverallChangeStatus */ public ChangeProgressStatusDetails withStatus(OverallChangeStatus status) { this.status = status.toString(); return this; } /** ** The list of properties in the domain configuration change that are still pending. *
* * @return The list of properties in the domain configuration change that are still pending. */ public java.util.List* The list of properties in the domain configuration change that are still pending. *
* * @param pendingProperties * The list of properties in the domain configuration change that are still pending. */ public void setPendingProperties(java.util.Collection* The list of properties in the domain configuration change that are still pending. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPendingProperties(java.util.Collection)} or {@link #withPendingProperties(java.util.Collection)} if * you want to override the existing values. *
* * @param pendingProperties * The list of properties in the domain configuration change that are still pending. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeProgressStatusDetails withPendingProperties(String... pendingProperties) { if (this.pendingProperties == null) { setPendingProperties(new java.util.ArrayList* The list of properties in the domain configuration change that are still pending. *
* * @param pendingProperties * The list of properties in the domain configuration change that are still pending. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeProgressStatusDetails withPendingProperties(java.util.Collection* The list of properties in the domain configuration change that have completed. *
* * @return The list of properties in the domain configuration change that have completed. */ public java.util.List* The list of properties in the domain configuration change that have completed. *
* * @param completedProperties * The list of properties in the domain configuration change that have completed. */ public void setCompletedProperties(java.util.Collection* The list of properties in the domain configuration change that have completed. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCompletedProperties(java.util.Collection)} or {@link #withCompletedProperties(java.util.Collection)} * if you want to override the existing values. *
* * @param completedProperties * The list of properties in the domain configuration change that have completed. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeProgressStatusDetails withCompletedProperties(String... completedProperties) { if (this.completedProperties == null) { setCompletedProperties(new java.util.ArrayList* The list of properties in the domain configuration change that have completed. *
* * @param completedProperties * The list of properties in the domain configuration change that have completed. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeProgressStatusDetails withCompletedProperties(java.util.Collection* The total number of stages required for the configuration change. *
* * @param totalNumberOfStages * The total number of stages required for the configuration change. */ public void setTotalNumberOfStages(Integer totalNumberOfStages) { this.totalNumberOfStages = totalNumberOfStages; } /** ** The total number of stages required for the configuration change. *
* * @return The total number of stages required for the configuration change. */ public Integer getTotalNumberOfStages() { return this.totalNumberOfStages; } /** ** The total number of stages required for the configuration change. *
* * @param totalNumberOfStages * The total number of stages required for the configuration change. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeProgressStatusDetails withTotalNumberOfStages(Integer totalNumberOfStages) { setTotalNumberOfStages(totalNumberOfStages); return this; } /** ** The specific stages that the domain is going through to perform the configuration change. *
* * @return The specific stages that the domain is going through to perform the configuration change. */ public java.util.List* The specific stages that the domain is going through to perform the configuration change. *
* * @param changeProgressStages * The specific stages that the domain is going through to perform the configuration change. */ public void setChangeProgressStages(java.util.Collection* The specific stages that the domain is going through to perform the configuration change. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setChangeProgressStages(java.util.Collection)} or {@link #withChangeProgressStages(java.util.Collection)} * if you want to override the existing values. *
* * @param changeProgressStages * The specific stages that the domain is going through to perform the configuration change. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeProgressStatusDetails withChangeProgressStages(ChangeProgressStage... changeProgressStages) { if (this.changeProgressStages == null) { setChangeProgressStages(new java.util.ArrayList* The specific stages that the domain is going through to perform the configuration change. *
* * @param changeProgressStages * The specific stages that the domain is going through to perform the configuration change. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeProgressStatusDetails withChangeProgressStages(java.util.Collection