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

*/ private java.util.Date startTimestamp; /** *

* The current status of the upgrade. The status can take one of the following values: *

* */ private String upgradeStatus; /** *

* A list of each step performed as part of a specific upgrade or upgrade eligibility check. *

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

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

* * @param startTimestamp * UTC timestamp at which the upgrade API call was made, in the format 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. *

* * @return UTC timestamp at which the upgrade API call was made, in the format 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. *

* * @param startTimestamp * UTC timestamp at which the upgrade API call was made, in the format 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: *

* * * @param upgradeStatus * The current status of the upgrade. The status can take one of the following values:

*