/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace ServiceDiscovery { namespace Model { /** */ class UpdateInstanceCustomHealthStatusRequest : public ServiceDiscoveryRequest { public: AWS_SERVICEDISCOVERY_API UpdateInstanceCustomHealthStatusRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateInstanceCustomHealthStatus"; } AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override; AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the service that includes the configuration for the custom health * check that you want to change the status for.

*/ inline const Aws::String& GetServiceId() const{ return m_serviceId; } /** *

The ID of the service that includes the configuration for the custom health * check that you want to change the status for.

*/ inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; } /** *

The ID of the service that includes the configuration for the custom health * check that you want to change the status for.

*/ inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; } /** *

The ID of the service that includes the configuration for the custom health * check that you want to change the status for.

*/ inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); } /** *

The ID of the service that includes the configuration for the custom health * check that you want to change the status for.

*/ inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); } /** *

The ID of the service that includes the configuration for the custom health * check that you want to change the status for.

*/ inline UpdateInstanceCustomHealthStatusRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;} /** *

The ID of the service that includes the configuration for the custom health * check that you want to change the status for.

*/ inline UpdateInstanceCustomHealthStatusRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;} /** *

The ID of the service that includes the configuration for the custom health * check that you want to change the status for.

*/ inline UpdateInstanceCustomHealthStatusRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;} /** *

The ID of the instance that you want to change the health status for.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The ID of the instance that you want to change the health status for.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The ID of the instance that you want to change the health status for.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The ID of the instance that you want to change the health status for.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The ID of the instance that you want to change the health status for.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The ID of the instance that you want to change the health status for.

*/ inline UpdateInstanceCustomHealthStatusRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The ID of the instance that you want to change the health status for.

*/ inline UpdateInstanceCustomHealthStatusRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The ID of the instance that you want to change the health status for.

*/ inline UpdateInstanceCustomHealthStatusRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The new status of the instance, HEALTHY or * UNHEALTHY.

*/ inline const CustomHealthStatus& GetStatus() const{ return m_status; } /** *

The new status of the instance, HEALTHY or * UNHEALTHY.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The new status of the instance, HEALTHY or * UNHEALTHY.

*/ inline void SetStatus(const CustomHealthStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The new status of the instance, HEALTHY or * UNHEALTHY.

*/ inline void SetStatus(CustomHealthStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The new status of the instance, HEALTHY or * UNHEALTHY.

*/ inline UpdateInstanceCustomHealthStatusRequest& WithStatus(const CustomHealthStatus& value) { SetStatus(value); return *this;} /** *

The new status of the instance, HEALTHY or * UNHEALTHY.

*/ inline UpdateInstanceCustomHealthStatusRequest& WithStatus(CustomHealthStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; CustomHealthStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws