/** * 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 Lightsail { namespace Model { /** */ class DeleteLoadBalancerTlsCertificateRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API DeleteLoadBalancerTlsCertificateRequest(); // 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 "DeleteLoadBalancerTlsCertificate"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The load balancer name.

*/ inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; } /** *

The load balancer name.

*/ inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; } /** *

The load balancer name.

*/ inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; } /** *

The load balancer name.

*/ inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); } /** *

The load balancer name.

*/ inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); } /** *

The load balancer name.

*/ inline DeleteLoadBalancerTlsCertificateRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;} /** *

The load balancer name.

*/ inline DeleteLoadBalancerTlsCertificateRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;} /** *

The load balancer name.

*/ inline DeleteLoadBalancerTlsCertificateRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;} /** *

The SSL/TLS certificate name.

*/ inline const Aws::String& GetCertificateName() const{ return m_certificateName; } /** *

The SSL/TLS certificate name.

*/ inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; } /** *

The SSL/TLS certificate name.

*/ inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; } /** *

The SSL/TLS certificate name.

*/ inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); } /** *

The SSL/TLS certificate name.

*/ inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); } /** *

The SSL/TLS certificate name.

*/ inline DeleteLoadBalancerTlsCertificateRequest& WithCertificateName(const Aws::String& value) { SetCertificateName(value); return *this;} /** *

The SSL/TLS certificate name.

*/ inline DeleteLoadBalancerTlsCertificateRequest& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;} /** *

The SSL/TLS certificate name.

*/ inline DeleteLoadBalancerTlsCertificateRequest& WithCertificateName(const char* value) { SetCertificateName(value); return *this;} /** *

When true, forces the deletion of an SSL/TLS certificate.

*

There can be two certificates associated with a Lightsail load balancer: the * primary and the backup. The force parameter is required when the * primary SSL/TLS certificate is in use by an instance attached to the load * balancer.

*/ inline bool GetForce() const{ return m_force; } /** *

When true, forces the deletion of an SSL/TLS certificate.

*

There can be two certificates associated with a Lightsail load balancer: the * primary and the backup. The force parameter is required when the * primary SSL/TLS certificate is in use by an instance attached to the load * balancer.

*/ inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; } /** *

When true, forces the deletion of an SSL/TLS certificate.

*

There can be two certificates associated with a Lightsail load balancer: the * primary and the backup. The force parameter is required when the * primary SSL/TLS certificate is in use by an instance attached to the load * balancer.

*/ inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; } /** *

When true, forces the deletion of an SSL/TLS certificate.

*

There can be two certificates associated with a Lightsail load balancer: the * primary and the backup. The force parameter is required when the * primary SSL/TLS certificate is in use by an instance attached to the load * balancer.

*/ inline DeleteLoadBalancerTlsCertificateRequest& WithForce(bool value) { SetForce(value); return *this;} private: Aws::String m_loadBalancerName; bool m_loadBalancerNameHasBeenSet = false; Aws::String m_certificateName; bool m_certificateNameHasBeenSet = false; bool m_force; bool m_forceHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws