/** * 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 Route53 { namespace Model { /** *

A complex type that contains the health check request * information.

See Also:

AWS * API Reference

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

A unique string that identifies the request and that allows you to retry a * failed CreateHealthCheck request without the risk of creating two * identical health checks:

  • If you send a * CreateHealthCheck request with the same * CallerReference and settings as a previous request, and if the * health check doesn't exist, Amazon Route 53 creates the health check. If the * health check does exist, Route 53 returns the settings for the existing health * check.

  • If you send a CreateHealthCheck request * with the same CallerReference as a deleted health check, regardless * of the settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with the same CallerReference as an existing health check but with * different settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with a unique CallerReference but settings identical to an existing * health check, Route 53 creates the health check.

*/ inline const Aws::String& GetCallerReference() const{ return m_callerReference; } /** *

A unique string that identifies the request and that allows you to retry a * failed CreateHealthCheck request without the risk of creating two * identical health checks:

  • If you send a * CreateHealthCheck request with the same * CallerReference and settings as a previous request, and if the * health check doesn't exist, Amazon Route 53 creates the health check. If the * health check does exist, Route 53 returns the settings for the existing health * check.

  • If you send a CreateHealthCheck request * with the same CallerReference as a deleted health check, regardless * of the settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with the same CallerReference as an existing health check but with * different settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with a unique CallerReference but settings identical to an existing * health check, Route 53 creates the health check.

*/ inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; } /** *

A unique string that identifies the request and that allows you to retry a * failed CreateHealthCheck request without the risk of creating two * identical health checks:

  • If you send a * CreateHealthCheck request with the same * CallerReference and settings as a previous request, and if the * health check doesn't exist, Amazon Route 53 creates the health check. If the * health check does exist, Route 53 returns the settings for the existing health * check.

  • If you send a CreateHealthCheck request * with the same CallerReference as a deleted health check, regardless * of the settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with the same CallerReference as an existing health check but with * different settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with a unique CallerReference but settings identical to an existing * health check, Route 53 creates the health check.

*/ inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; } /** *

A unique string that identifies the request and that allows you to retry a * failed CreateHealthCheck request without the risk of creating two * identical health checks:

  • If you send a * CreateHealthCheck request with the same * CallerReference and settings as a previous request, and if the * health check doesn't exist, Amazon Route 53 creates the health check. If the * health check does exist, Route 53 returns the settings for the existing health * check.

  • If you send a CreateHealthCheck request * with the same CallerReference as a deleted health check, regardless * of the settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with the same CallerReference as an existing health check but with * different settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with a unique CallerReference but settings identical to an existing * health check, Route 53 creates the health check.

*/ inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::move(value); } /** *

A unique string that identifies the request and that allows you to retry a * failed CreateHealthCheck request without the risk of creating two * identical health checks:

  • If you send a * CreateHealthCheck request with the same * CallerReference and settings as a previous request, and if the * health check doesn't exist, Amazon Route 53 creates the health check. If the * health check does exist, Route 53 returns the settings for the existing health * check.

  • If you send a CreateHealthCheck request * with the same CallerReference as a deleted health check, regardless * of the settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with the same CallerReference as an existing health check but with * different settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with a unique CallerReference but settings identical to an existing * health check, Route 53 creates the health check.

*/ inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); } /** *

A unique string that identifies the request and that allows you to retry a * failed CreateHealthCheck request without the risk of creating two * identical health checks:

  • If you send a * CreateHealthCheck request with the same * CallerReference and settings as a previous request, and if the * health check doesn't exist, Amazon Route 53 creates the health check. If the * health check does exist, Route 53 returns the settings for the existing health * check.

  • If you send a CreateHealthCheck request * with the same CallerReference as a deleted health check, regardless * of the settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with the same CallerReference as an existing health check but with * different settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with a unique CallerReference but settings identical to an existing * health check, Route 53 creates the health check.

*/ inline CreateHealthCheckRequest& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;} /** *

A unique string that identifies the request and that allows you to retry a * failed CreateHealthCheck request without the risk of creating two * identical health checks:

  • If you send a * CreateHealthCheck request with the same * CallerReference and settings as a previous request, and if the * health check doesn't exist, Amazon Route 53 creates the health check. If the * health check does exist, Route 53 returns the settings for the existing health * check.

  • If you send a CreateHealthCheck request * with the same CallerReference as a deleted health check, regardless * of the settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with the same CallerReference as an existing health check but with * different settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with a unique CallerReference but settings identical to an existing * health check, Route 53 creates the health check.

*/ inline CreateHealthCheckRequest& WithCallerReference(Aws::String&& value) { SetCallerReference(std::move(value)); return *this;} /** *

A unique string that identifies the request and that allows you to retry a * failed CreateHealthCheck request without the risk of creating two * identical health checks:

  • If you send a * CreateHealthCheck request with the same * CallerReference and settings as a previous request, and if the * health check doesn't exist, Amazon Route 53 creates the health check. If the * health check does exist, Route 53 returns the settings for the existing health * check.

  • If you send a CreateHealthCheck request * with the same CallerReference as a deleted health check, regardless * of the settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with the same CallerReference as an existing health check but with * different settings, Route 53 returns a HealthCheckAlreadyExists * error.

  • If you send a CreateHealthCheck request * with a unique CallerReference but settings identical to an existing * health check, Route 53 creates the health check.

*/ inline CreateHealthCheckRequest& WithCallerReference(const char* value) { SetCallerReference(value); return *this;} /** *

A complex type that contains settings for a new health check.

*/ inline const HealthCheckConfig& GetHealthCheckConfig() const{ return m_healthCheckConfig; } /** *

A complex type that contains settings for a new health check.

*/ inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; } /** *

A complex type that contains settings for a new health check.

*/ inline void SetHealthCheckConfig(const HealthCheckConfig& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; } /** *

A complex type that contains settings for a new health check.

*/ inline void SetHealthCheckConfig(HealthCheckConfig&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::move(value); } /** *

A complex type that contains settings for a new health check.

*/ inline CreateHealthCheckRequest& WithHealthCheckConfig(const HealthCheckConfig& value) { SetHealthCheckConfig(value); return *this;} /** *

A complex type that contains settings for a new health check.

*/ inline CreateHealthCheckRequest& WithHealthCheckConfig(HealthCheckConfig&& value) { SetHealthCheckConfig(std::move(value)); return *this;} private: Aws::String m_callerReference; bool m_callerReferenceHasBeenSet = false; HealthCheckConfig m_healthCheckConfig; bool m_healthCheckConfigHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws