/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Information about a service discovery registry to assign to the * service.

See Also:

AWS * API Reference

*/ class AwsEcsServiceServiceRegistriesDetails { public: AWS_SECURITYHUB_API AwsEcsServiceServiceRegistriesDetails(); AWS_SECURITYHUB_API AwsEcsServiceServiceRegistriesDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEcsServiceServiceRegistriesDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The container name value to use for the service discovery service.

If * the task definition uses the bridge or host network * mode, you must specify ContainerName and * ContainerPort.

If the task definition uses the * awsvpc network mode and a type SRV DNS record, you must specify * either ContainerName and ContainerPort, or * Port , but not both.

*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *

The container name value to use for the service discovery service.

If * the task definition uses the bridge or host network * mode, you must specify ContainerName and * ContainerPort.

If the task definition uses the * awsvpc network mode and a type SRV DNS record, you must specify * either ContainerName and ContainerPort, or * Port , but not both.

*/ inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; } /** *

The container name value to use for the service discovery service.

If * the task definition uses the bridge or host network * mode, you must specify ContainerName and * ContainerPort.

If the task definition uses the * awsvpc network mode and a type SRV DNS record, you must specify * either ContainerName and ContainerPort, or * Port , but not both.

*/ inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; } /** *

The container name value to use for the service discovery service.

If * the task definition uses the bridge or host network * mode, you must specify ContainerName and * ContainerPort.

If the task definition uses the * awsvpc network mode and a type SRV DNS record, you must specify * either ContainerName and ContainerPort, or * Port , but not both.

*/ inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); } /** *

The container name value to use for the service discovery service.

If * the task definition uses the bridge or host network * mode, you must specify ContainerName and * ContainerPort.

If the task definition uses the * awsvpc network mode and a type SRV DNS record, you must specify * either ContainerName and ContainerPort, or * Port , but not both.

*/ inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); } /** *

The container name value to use for the service discovery service.

If * the task definition uses the bridge or host network * mode, you must specify ContainerName and * ContainerPort.

If the task definition uses the * awsvpc network mode and a type SRV DNS record, you must specify * either ContainerName and ContainerPort, or * Port , but not both.

*/ inline AwsEcsServiceServiceRegistriesDetails& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *

The container name value to use for the service discovery service.

If * the task definition uses the bridge or host network * mode, you must specify ContainerName and * ContainerPort.

If the task definition uses the * awsvpc network mode and a type SRV DNS record, you must specify * either ContainerName and ContainerPort, or * Port , but not both.

*/ inline AwsEcsServiceServiceRegistriesDetails& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *

The container name value to use for the service discovery service.

If * the task definition uses the bridge or host network * mode, you must specify ContainerName and * ContainerPort.

If the task definition uses the * awsvpc network mode and a type SRV DNS record, you must specify * either ContainerName and ContainerPort, or * Port , but not both.

*/ inline AwsEcsServiceServiceRegistriesDetails& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *

The port value to use for the service discovery service.

If the task * definition uses the bridge or host network mode, you * must specify ContainerName and ContainerPort.

*

If the task definition uses the awsvpc network mode and a type * SRV DNS record, you must specify either ContainerName and * ContainerPort, or Port , but not both.

*/ inline int GetContainerPort() const{ return m_containerPort; } /** *

The port value to use for the service discovery service.

If the task * definition uses the bridge or host network mode, you * must specify ContainerName and ContainerPort.

*

If the task definition uses the awsvpc network mode and a type * SRV DNS record, you must specify either ContainerName and * ContainerPort, or Port , but not both.

*/ inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; } /** *

The port value to use for the service discovery service.

If the task * definition uses the bridge or host network mode, you * must specify ContainerName and ContainerPort.

*

If the task definition uses the awsvpc network mode and a type * SRV DNS record, you must specify either ContainerName and * ContainerPort, or Port , but not both.

*/ inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; } /** *

The port value to use for the service discovery service.

If the task * definition uses the bridge or host network mode, you * must specify ContainerName and ContainerPort.

*

If the task definition uses the awsvpc network mode and a type * SRV DNS record, you must specify either ContainerName and * ContainerPort, or Port , but not both.

*/ inline AwsEcsServiceServiceRegistriesDetails& WithContainerPort(int value) { SetContainerPort(value); return *this;} /** *

The port value to use for a service discovery service that specifies an SRV * record. This field can be used if both the awsvpcawsvpc network * mode and SRV records are used.

*/ inline int GetPort() const{ return m_port; } /** *

The port value to use for a service discovery service that specifies an SRV * record. This field can be used if both the awsvpcawsvpc network * mode and SRV records are used.

*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *

The port value to use for a service discovery service that specifies an SRV * record. This field can be used if both the awsvpcawsvpc network * mode and SRV records are used.

*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *

The port value to use for a service discovery service that specifies an SRV * record. This field can be used if both the awsvpcawsvpc network * mode and SRV records are used.

*/ inline AwsEcsServiceServiceRegistriesDetails& WithPort(int value) { SetPort(value); return *this;} /** *

The ARN of the service registry.

*/ inline const Aws::String& GetRegistryArn() const{ return m_registryArn; } /** *

The ARN of the service registry.

*/ inline bool RegistryArnHasBeenSet() const { return m_registryArnHasBeenSet; } /** *

The ARN of the service registry.

*/ inline void SetRegistryArn(const Aws::String& value) { m_registryArnHasBeenSet = true; m_registryArn = value; } /** *

The ARN of the service registry.

*/ inline void SetRegistryArn(Aws::String&& value) { m_registryArnHasBeenSet = true; m_registryArn = std::move(value); } /** *

The ARN of the service registry.

*/ inline void SetRegistryArn(const char* value) { m_registryArnHasBeenSet = true; m_registryArn.assign(value); } /** *

The ARN of the service registry.

*/ inline AwsEcsServiceServiceRegistriesDetails& WithRegistryArn(const Aws::String& value) { SetRegistryArn(value); return *this;} /** *

The ARN of the service registry.

*/ inline AwsEcsServiceServiceRegistriesDetails& WithRegistryArn(Aws::String&& value) { SetRegistryArn(std::move(value)); return *this;} /** *

The ARN of the service registry.

*/ inline AwsEcsServiceServiceRegistriesDetails& WithRegistryArn(const char* value) { SetRegistryArn(value); return *this;} private: Aws::String m_containerName; bool m_containerNameHasBeenSet = false; int m_containerPort; bool m_containerPortHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; Aws::String m_registryArn; bool m_registryArnHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws