/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the public endpoint configuration of a deployment of an Amazon
* Lightsail container service.See Also:
AWS
* API Reference
The name of the container entry of the deployment that the endpoint * configuration applies to.
*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *The name of the container entry of the deployment that the endpoint * configuration applies to.
*/ inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; } /** *The name of the container entry of the deployment that the endpoint * configuration applies to.
*/ inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; } /** *The name of the container entry of the deployment that the endpoint * configuration applies to.
*/ inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); } /** *The name of the container entry of the deployment that the endpoint * configuration applies to.
*/ inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); } /** *The name of the container entry of the deployment that the endpoint * configuration applies to.
*/ inline ContainerServiceEndpoint& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *The name of the container entry of the deployment that the endpoint * configuration applies to.
*/ inline ContainerServiceEndpoint& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *The name of the container entry of the deployment that the endpoint * configuration applies to.
*/ inline ContainerServiceEndpoint& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *The port of the specified container to which traffic is forwarded to.
*/ inline int GetContainerPort() const{ return m_containerPort; } /** *The port of the specified container to which traffic is forwarded to.
*/ inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; } /** *The port of the specified container to which traffic is forwarded to.
*/ inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; } /** *The port of the specified container to which traffic is forwarded to.
*/ inline ContainerServiceEndpoint& WithContainerPort(int value) { SetContainerPort(value); return *this;} /** *An object that describes the health check configuration of the container.
*/ inline const ContainerServiceHealthCheckConfig& GetHealthCheck() const{ return m_healthCheck; } /** *An object that describes the health check configuration of the container.
*/ inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; } /** *An object that describes the health check configuration of the container.
*/ inline void SetHealthCheck(const ContainerServiceHealthCheckConfig& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; } /** *An object that describes the health check configuration of the container.
*/ inline void SetHealthCheck(ContainerServiceHealthCheckConfig&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); } /** *An object that describes the health check configuration of the container.
*/ inline ContainerServiceEndpoint& WithHealthCheck(const ContainerServiceHealthCheckConfig& value) { SetHealthCheck(value); return *this;} /** *An object that describes the health check configuration of the container.
*/ inline ContainerServiceEndpoint& WithHealthCheck(ContainerServiceHealthCheckConfig&& value) { SetHealthCheck(std::move(value)); return *this;} private: Aws::String m_containerName; bool m_containerNameHasBeenSet = false; int m_containerPort; bool m_containerPortHasBeenSet = false; ContainerServiceHealthCheckConfig m_healthCheck; bool m_healthCheckHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws