/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpenSearchService { namespace Model { /** *

Results of a dry run performed in an update domain request.

See * Also:

AWS * API Reference

*/ class DryRunResults { public: AWS_OPENSEARCHSERVICE_API DryRunResults(); AWS_OPENSEARCHSERVICE_API DryRunResults(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVICE_API DryRunResults& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specifies the way in which OpenSearch Service will apply an update. Possible * values are:

  • Blue/Green - The update requires a * blue/green deployment.

  • DynamicUpdate - No blue/green * deployment required

  • Undetermined - The domain is in * the middle of an update and can't predict the deployment type. Try again after * the update is complete.

  • None - The request doesn't * include any configuration changes.

*/ inline const Aws::String& GetDeploymentType() const{ return m_deploymentType; } /** *

Specifies the way in which OpenSearch Service will apply an update. Possible * values are:

  • Blue/Green - The update requires a * blue/green deployment.

  • DynamicUpdate - No blue/green * deployment required

  • Undetermined - The domain is in * the middle of an update and can't predict the deployment type. Try again after * the update is complete.

  • None - The request doesn't * include any configuration changes.

*/ inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; } /** *

Specifies the way in which OpenSearch Service will apply an update. Possible * values are:

  • Blue/Green - The update requires a * blue/green deployment.

  • DynamicUpdate - No blue/green * deployment required

  • Undetermined - The domain is in * the middle of an update and can't predict the deployment type. Try again after * the update is complete.

  • None - The request doesn't * include any configuration changes.

*/ inline void SetDeploymentType(const Aws::String& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; } /** *

Specifies the way in which OpenSearch Service will apply an update. Possible * values are:

  • Blue/Green - The update requires a * blue/green deployment.

  • DynamicUpdate - No blue/green * deployment required

  • Undetermined - The domain is in * the middle of an update and can't predict the deployment type. Try again after * the update is complete.

  • None - The request doesn't * include any configuration changes.

*/ inline void SetDeploymentType(Aws::String&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); } /** *

Specifies the way in which OpenSearch Service will apply an update. Possible * values are:

  • Blue/Green - The update requires a * blue/green deployment.

  • DynamicUpdate - No blue/green * deployment required

  • Undetermined - The domain is in * the middle of an update and can't predict the deployment type. Try again after * the update is complete.

  • None - The request doesn't * include any configuration changes.

*/ inline void SetDeploymentType(const char* value) { m_deploymentTypeHasBeenSet = true; m_deploymentType.assign(value); } /** *

Specifies the way in which OpenSearch Service will apply an update. Possible * values are:

  • Blue/Green - The update requires a * blue/green deployment.

  • DynamicUpdate - No blue/green * deployment required

  • Undetermined - The domain is in * the middle of an update and can't predict the deployment type. Try again after * the update is complete.

  • None - The request doesn't * include any configuration changes.

*/ inline DryRunResults& WithDeploymentType(const Aws::String& value) { SetDeploymentType(value); return *this;} /** *

Specifies the way in which OpenSearch Service will apply an update. Possible * values are:

  • Blue/Green - The update requires a * blue/green deployment.

  • DynamicUpdate - No blue/green * deployment required

  • Undetermined - The domain is in * the middle of an update and can't predict the deployment type. Try again after * the update is complete.

  • None - The request doesn't * include any configuration changes.

*/ inline DryRunResults& WithDeploymentType(Aws::String&& value) { SetDeploymentType(std::move(value)); return *this;} /** *

Specifies the way in which OpenSearch Service will apply an update. Possible * values are:

  • Blue/Green - The update requires a * blue/green deployment.

  • DynamicUpdate - No blue/green * deployment required

  • Undetermined - The domain is in * the middle of an update and can't predict the deployment type. Try again after * the update is complete.

  • None - The request doesn't * include any configuration changes.

*/ inline DryRunResults& WithDeploymentType(const char* value) { SetDeploymentType(value); return *this;} /** *

A message corresponding to the deployment type.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A message corresponding to the deployment type.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A message corresponding to the deployment type.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A message corresponding to the deployment type.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A message corresponding to the deployment type.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A message corresponding to the deployment type.

*/ inline DryRunResults& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A message corresponding to the deployment type.

*/ inline DryRunResults& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A message corresponding to the deployment type.

*/ inline DryRunResults& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_deploymentType; bool m_deploymentTypeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws