/* * 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; /** *
* History of the last 10 upgrades and upgrade eligibility checks for an Amazon OpenSearch Service domain. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpgradeHistory implements Serializable, Cloneable, StructuredPojo { /** ** A string that describes the upgrade. *
*/ private String upgradeName; /** *
* UTC timestamp at which the upgrade API call was made, in the format yyyy-MM-ddTHH:mm:ssZ
.
*
* The current status of the upgrade. The status can take one of the following values: *
** In Progress *
** Succeeded *
** Succeeded with Issues *
** Failed *
** A list of each step performed as part of a specific upgrade or upgrade eligibility check. *
*/ private java.util.List* A string that describes the upgrade. *
* * @param upgradeName * A string that describes the upgrade. */ public void setUpgradeName(String upgradeName) { this.upgradeName = upgradeName; } /** ** A string that describes the upgrade. *
* * @return A string that describes the upgrade. */ public String getUpgradeName() { return this.upgradeName; } /** ** A string that describes the upgrade. *
* * @param upgradeName * A string that describes the upgrade. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeHistory withUpgradeName(String upgradeName) { setUpgradeName(upgradeName); return this; } /** *
* UTC timestamp at which the upgrade API call was made, in the format yyyy-MM-ddTHH:mm:ssZ
.
*
yyyy-MM-ddTHH:mm:ssZ
.
*/
public void setStartTimestamp(java.util.Date startTimestamp) {
this.startTimestamp = startTimestamp;
}
/**
*
* UTC timestamp at which the upgrade API call was made, in the format yyyy-MM-ddTHH:mm:ssZ
.
*
yyyy-MM-ddTHH:mm:ssZ
.
*/
public java.util.Date getStartTimestamp() {
return this.startTimestamp;
}
/**
*
* UTC timestamp at which the upgrade API call was made, in the format yyyy-MM-ddTHH:mm:ssZ
.
*
yyyy-MM-ddTHH:mm:ssZ
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpgradeHistory withStartTimestamp(java.util.Date startTimestamp) {
setStartTimestamp(startTimestamp);
return this;
}
/**
* * The current status of the upgrade. The status can take one of the following values: *
** In Progress *
** Succeeded *
** Succeeded with Issues *
** Failed *
** In Progress *
** Succeeded *
** Succeeded with Issues *
** Failed *
** The current status of the upgrade. The status can take one of the following values: *
** In Progress *
** Succeeded *
** Succeeded with Issues *
** Failed *
** In Progress *
** Succeeded *
** Succeeded with Issues *
** Failed *
** The current status of the upgrade. The status can take one of the following values: *
** In Progress *
** Succeeded *
** Succeeded with Issues *
** Failed *
** In Progress *
** Succeeded *
** Succeeded with Issues *
** Failed *
** The current status of the upgrade. The status can take one of the following values: *
** In Progress *
** Succeeded *
** Succeeded with Issues *
** Failed *
** In Progress *
** Succeeded *
** Succeeded with Issues *
** Failed *
** A list of each step performed as part of a specific upgrade or upgrade eligibility check. *
* * @return A list of each step performed as part of a specific upgrade or upgrade eligibility check. */ public java.util.List* A list of each step performed as part of a specific upgrade or upgrade eligibility check. *
* * @param stepsList * A list of each step performed as part of a specific upgrade or upgrade eligibility check. */ public void setStepsList(java.util.Collection* A list of each step performed as part of a specific upgrade or upgrade eligibility check. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStepsList(java.util.Collection)} or {@link #withStepsList(java.util.Collection)} if you want to * override the existing values. *
* * @param stepsList * A list of each step performed as part of a specific upgrade or upgrade eligibility check. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeHistory withStepsList(UpgradeStepItem... stepsList) { if (this.stepsList == null) { setStepsList(new java.util.ArrayList* A list of each step performed as part of a specific upgrade or upgrade eligibility check. *
* * @param stepsList * A list of each step performed as part of a specific upgrade or upgrade eligibility check. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeHistory withStepsList(java.util.Collection