/* * 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.AmazonWebServiceRequest; /** *
* Container for the request parameters to the UpgradeDomain
operation.
*
* Name of the OpenSearch Service domain that you want to upgrade. *
*/ private String domainName; /** ** OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or * Elasticsearch_X.Y. *
*/ private String targetVersion; /** ** When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform the * upgrade. *
*/ private Boolean performCheckOnly; /** *
* Only supports the override_main_response_version
parameter and not other advanced options. You can
* only include this option when upgrading to an OpenSearch version. Specifies whether the domain reports its
* version as 7.10 so that it continues to work with Elasticsearch OSS clients and plugins.
*
* Name of the OpenSearch Service domain that you want to upgrade. *
* * @param domainName * Name of the OpenSearch Service domain that you want to upgrade. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** ** Name of the OpenSearch Service domain that you want to upgrade. *
* * @return Name of the OpenSearch Service domain that you want to upgrade. */ public String getDomainName() { return this.domainName; } /** ** Name of the OpenSearch Service domain that you want to upgrade. *
* * @param domainName * Name of the OpenSearch Service domain that you want to upgrade. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeDomainRequest withDomainName(String domainName) { setDomainName(domainName); return this; } /** ** OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or * Elasticsearch_X.Y. *
* * @param targetVersion * OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or * Elasticsearch_X.Y. */ public void setTargetVersion(String targetVersion) { this.targetVersion = targetVersion; } /** ** OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or * Elasticsearch_X.Y. *
* * @return OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or * Elasticsearch_X.Y. */ public String getTargetVersion() { return this.targetVersion; } /** ** OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or * Elasticsearch_X.Y. *
* * @param targetVersion * OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or * Elasticsearch_X.Y. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeDomainRequest withTargetVersion(String targetVersion) { setTargetVersion(targetVersion); return this; } /** ** When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform the * upgrade. *
* * @param performCheckOnly * When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform * the upgrade. */ public void setPerformCheckOnly(Boolean performCheckOnly) { this.performCheckOnly = performCheckOnly; } /** ** When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform the * upgrade. *
* * @return When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform * the upgrade. */ public Boolean getPerformCheckOnly() { return this.performCheckOnly; } /** ** When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform the * upgrade. *
* * @param performCheckOnly * When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform * the upgrade. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeDomainRequest withPerformCheckOnly(Boolean performCheckOnly) { setPerformCheckOnly(performCheckOnly); return this; } /** ** When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform the * upgrade. *
* * @return When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform * the upgrade. */ public Boolean isPerformCheckOnly() { return this.performCheckOnly; } /** *
* Only supports the override_main_response_version
parameter and not other advanced options. You can
* only include this option when upgrading to an OpenSearch version. Specifies whether the domain reports its
* version as 7.10 so that it continues to work with Elasticsearch OSS clients and plugins.
*
override_main_response_version
parameter and not other advanced options.
* You can only include this option when upgrading to an OpenSearch version. Specifies whether the domain
* reports its version as 7.10 so that it continues to work with Elasticsearch OSS clients and plugins.
*/
public java.util.Map
* Only supports the override_main_response_version
parameter and not other advanced options. You can
* only include this option when upgrading to an OpenSearch version. Specifies whether the domain reports its
* version as 7.10 so that it continues to work with Elasticsearch OSS clients and plugins.
*
override_main_response_version
parameter and not other advanced options.
* You can only include this option when upgrading to an OpenSearch version. Specifies whether the domain
* reports its version as 7.10 so that it continues to work with Elasticsearch OSS clients and plugins.
*/
public void setAdvancedOptions(java.util.Map
* Only supports the override_main_response_version
parameter and not other advanced options. You can
* only include this option when upgrading to an OpenSearch version. Specifies whether the domain reports its
* version as 7.10 so that it continues to work with Elasticsearch OSS clients and plugins.
*
override_main_response_version
parameter and not other advanced options.
* You can only include this option when upgrading to an OpenSearch version. Specifies whether the domain
* reports its version as 7.10 so that it continues to work with Elasticsearch OSS clients and plugins.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpgradeDomainRequest withAdvancedOptions(java.util.Map