/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Route53 { namespace Model { /** *

A request for the reason that a health check failed most * recently.

See Also:

AWS * API Reference

*/ class GetHealthCheckLastFailureReasonRequest : public Route53Request { public: AWS_ROUTE53_API GetHealthCheckLastFailureReasonRequest(); // 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 "GetHealthCheckLastFailureReason"; } AWS_ROUTE53_API Aws::String SerializePayload() const override; /** *

The ID for the health check for which you want the last failure reason. When * you created the health check, CreateHealthCheck returned the ID in * the response, in the HealthCheckId element.

If you * want to get the last failure reason for a calculated health check, you must use * the Amazon Route 53 console or the CloudWatch console. You can't use * GetHealthCheckLastFailureReason for a calculated health check.

* */ inline const Aws::String& GetHealthCheckId() const{ return m_healthCheckId; } /** *

The ID for the health check for which you want the last failure reason. When * you created the health check, CreateHealthCheck returned the ID in * the response, in the HealthCheckId element.

If you * want to get the last failure reason for a calculated health check, you must use * the Amazon Route 53 console or the CloudWatch console. You can't use * GetHealthCheckLastFailureReason for a calculated health check.

* */ inline bool HealthCheckIdHasBeenSet() const { return m_healthCheckIdHasBeenSet; } /** *

The ID for the health check for which you want the last failure reason. When * you created the health check, CreateHealthCheck returned the ID in * the response, in the HealthCheckId element.

If you * want to get the last failure reason for a calculated health check, you must use * the Amazon Route 53 console or the CloudWatch console. You can't use * GetHealthCheckLastFailureReason for a calculated health check.

* */ inline void SetHealthCheckId(const Aws::String& value) { m_healthCheckIdHasBeenSet = true; m_healthCheckId = value; } /** *

The ID for the health check for which you want the last failure reason. When * you created the health check, CreateHealthCheck returned the ID in * the response, in the HealthCheckId element.

If you * want to get the last failure reason for a calculated health check, you must use * the Amazon Route 53 console or the CloudWatch console. You can't use * GetHealthCheckLastFailureReason for a calculated health check.

* */ inline void SetHealthCheckId(Aws::String&& value) { m_healthCheckIdHasBeenSet = true; m_healthCheckId = std::move(value); } /** *

The ID for the health check for which you want the last failure reason. When * you created the health check, CreateHealthCheck returned the ID in * the response, in the HealthCheckId element.

If you * want to get the last failure reason for a calculated health check, you must use * the Amazon Route 53 console or the CloudWatch console. You can't use * GetHealthCheckLastFailureReason for a calculated health check.

* */ inline void SetHealthCheckId(const char* value) { m_healthCheckIdHasBeenSet = true; m_healthCheckId.assign(value); } /** *

The ID for the health check for which you want the last failure reason. When * you created the health check, CreateHealthCheck returned the ID in * the response, in the HealthCheckId element.

If you * want to get the last failure reason for a calculated health check, you must use * the Amazon Route 53 console or the CloudWatch console. You can't use * GetHealthCheckLastFailureReason for a calculated health check.

* */ inline GetHealthCheckLastFailureReasonRequest& WithHealthCheckId(const Aws::String& value) { SetHealthCheckId(value); return *this;} /** *

The ID for the health check for which you want the last failure reason. When * you created the health check, CreateHealthCheck returned the ID in * the response, in the HealthCheckId element.

If you * want to get the last failure reason for a calculated health check, you must use * the Amazon Route 53 console or the CloudWatch console. You can't use * GetHealthCheckLastFailureReason for a calculated health check.

* */ inline GetHealthCheckLastFailureReasonRequest& WithHealthCheckId(Aws::String&& value) { SetHealthCheckId(std::move(value)); return *this;} /** *

The ID for the health check for which you want the last failure reason. When * you created the health check, CreateHealthCheck returned the ID in * the response, in the HealthCheckId element.

If you * want to get the last failure reason for a calculated health check, you must use * the Amazon Route 53 console or the CloudWatch console. You can't use * GetHealthCheckLastFailureReason for a calculated health check.

* */ inline GetHealthCheckLastFailureReasonRequest& WithHealthCheckId(const char* value) { SetHealthCheckId(value); return *this;} private: Aws::String m_healthCheckId; bool m_healthCheckIdHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws