/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A complex type that contains information about one health check that is
* associated with the current Amazon Web Services account.See
* Also:
AWS
* API Reference
The identifier that Amazon Route 53 assigned to the health check when you * created it. When you add or update a resource record set, you use this value to * specify which health check to use. The value can be up to 64 characters long. *
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The identifier that Amazon Route 53 assigned to the health check when you * created it. When you add or update a resource record set, you use this value to * specify which health check to use. The value can be up to 64 characters long. *
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The identifier that Amazon Route 53 assigned to the health check when you * created it. When you add or update a resource record set, you use this value to * specify which health check to use. The value can be up to 64 characters long. *
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The identifier that Amazon Route 53 assigned to the health check when you * created it. When you add or update a resource record set, you use this value to * specify which health check to use. The value can be up to 64 characters long. *
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The identifier that Amazon Route 53 assigned to the health check when you * created it. When you add or update a resource record set, you use this value to * specify which health check to use. The value can be up to 64 characters long. *
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The identifier that Amazon Route 53 assigned to the health check when you * created it. When you add or update a resource record set, you use this value to * specify which health check to use. The value can be up to 64 characters long. *
*/ inline HealthCheck& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The identifier that Amazon Route 53 assigned to the health check when you * created it. When you add or update a resource record set, you use this value to * specify which health check to use. The value can be up to 64 characters long. *
*/ inline HealthCheck& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The identifier that Amazon Route 53 assigned to the health check when you * created it. When you add or update a resource record set, you use this value to * specify which health check to use. The value can be up to 64 characters long. *
*/ inline HealthCheck& WithId(const char* value) { SetId(value); return *this;} /** *A unique string that you specified when you created the health check.
*/ inline const Aws::String& GetCallerReference() const{ return m_callerReference; } /** *A unique string that you specified when you created the health check.
*/ inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; } /** *A unique string that you specified when you created the health check.
*/ inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; } /** *A unique string that you specified when you created the health check.
*/ inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::move(value); } /** *A unique string that you specified when you created the health check.
*/ inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); } /** *A unique string that you specified when you created the health check.
*/ inline HealthCheck& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;} /** *A unique string that you specified when you created the health check.
*/ inline HealthCheck& WithCallerReference(Aws::String&& value) { SetCallerReference(std::move(value)); return *this;} /** *A unique string that you specified when you created the health check.
*/ inline HealthCheck& WithCallerReference(const char* value) { SetCallerReference(value); return *this;} /** *If the health check was created by another service, the service that created * the health check. When a health check is created by another service, you can't * edit or delete it using Amazon Route 53.
*/ inline const LinkedService& GetLinkedService() const{ return m_linkedService; } /** *If the health check was created by another service, the service that created * the health check. When a health check is created by another service, you can't * edit or delete it using Amazon Route 53.
*/ inline bool LinkedServiceHasBeenSet() const { return m_linkedServiceHasBeenSet; } /** *If the health check was created by another service, the service that created * the health check. When a health check is created by another service, you can't * edit or delete it using Amazon Route 53.
*/ inline void SetLinkedService(const LinkedService& value) { m_linkedServiceHasBeenSet = true; m_linkedService = value; } /** *If the health check was created by another service, the service that created * the health check. When a health check is created by another service, you can't * edit or delete it using Amazon Route 53.
*/ inline void SetLinkedService(LinkedService&& value) { m_linkedServiceHasBeenSet = true; m_linkedService = std::move(value); } /** *If the health check was created by another service, the service that created * the health check. When a health check is created by another service, you can't * edit or delete it using Amazon Route 53.
*/ inline HealthCheck& WithLinkedService(const LinkedService& value) { SetLinkedService(value); return *this;} /** *If the health check was created by another service, the service that created * the health check. When a health check is created by another service, you can't * edit or delete it using Amazon Route 53.
*/ inline HealthCheck& WithLinkedService(LinkedService&& value) { SetLinkedService(std::move(value)); return *this;} /** *A complex type that contains detailed information about one health check.
*/ inline const HealthCheckConfig& GetHealthCheckConfig() const{ return m_healthCheckConfig; } /** *A complex type that contains detailed information about one health check.
*/ inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; } /** *A complex type that contains detailed information about one health check.
*/ inline void SetHealthCheckConfig(const HealthCheckConfig& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; } /** *A complex type that contains detailed information about one health check.
*/ inline void SetHealthCheckConfig(HealthCheckConfig&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::move(value); } /** *A complex type that contains detailed information about one health check.
*/ inline HealthCheck& WithHealthCheckConfig(const HealthCheckConfig& value) { SetHealthCheckConfig(value); return *this;} /** *A complex type that contains detailed information about one health check.
*/ inline HealthCheck& WithHealthCheckConfig(HealthCheckConfig&& value) { SetHealthCheckConfig(std::move(value)); return *this;} /** *The version of the health check. You can optionally pass this value in a call
* to UpdateHealthCheck
to prevent overwriting another change to the
* health check.
The version of the health check. You can optionally pass this value in a call
* to UpdateHealthCheck
to prevent overwriting another change to the
* health check.
The version of the health check. You can optionally pass this value in a call
* to UpdateHealthCheck
to prevent overwriting another change to the
* health check.
The version of the health check. You can optionally pass this value in a call
* to UpdateHealthCheck
to prevent overwriting another change to the
* health check.
A complex type that contains information about the CloudWatch alarm that * Amazon Route 53 is monitoring for this health check.
*/ inline const CloudWatchAlarmConfiguration& GetCloudWatchAlarmConfiguration() const{ return m_cloudWatchAlarmConfiguration; } /** *A complex type that contains information about the CloudWatch alarm that * Amazon Route 53 is monitoring for this health check.
*/ inline bool CloudWatchAlarmConfigurationHasBeenSet() const { return m_cloudWatchAlarmConfigurationHasBeenSet; } /** *A complex type that contains information about the CloudWatch alarm that * Amazon Route 53 is monitoring for this health check.
*/ inline void SetCloudWatchAlarmConfiguration(const CloudWatchAlarmConfiguration& value) { m_cloudWatchAlarmConfigurationHasBeenSet = true; m_cloudWatchAlarmConfiguration = value; } /** *A complex type that contains information about the CloudWatch alarm that * Amazon Route 53 is monitoring for this health check.
*/ inline void SetCloudWatchAlarmConfiguration(CloudWatchAlarmConfiguration&& value) { m_cloudWatchAlarmConfigurationHasBeenSet = true; m_cloudWatchAlarmConfiguration = std::move(value); } /** *A complex type that contains information about the CloudWatch alarm that * Amazon Route 53 is monitoring for this health check.
*/ inline HealthCheck& WithCloudWatchAlarmConfiguration(const CloudWatchAlarmConfiguration& value) { SetCloudWatchAlarmConfiguration(value); return *this;} /** *A complex type that contains information about the CloudWatch alarm that * Amazon Route 53 is monitoring for this health check.
*/ inline HealthCheck& WithCloudWatchAlarmConfiguration(CloudWatchAlarmConfiguration&& value) { SetCloudWatchAlarmConfiguration(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_callerReference; bool m_callerReferenceHasBeenSet = false; LinkedService m_linkedService; bool m_linkedServiceHasBeenSet = false; HealthCheckConfig m_healthCheckConfig; bool m_healthCheckConfigHasBeenSet = false; long long m_healthCheckVersion; bool m_healthCheckVersionHasBeenSet = false; CloudWatchAlarmConfiguration m_cloudWatchAlarmConfiguration; bool m_cloudWatchAlarmConfigurationHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws