/** * 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 { /** *

Specifies the connection endpoint.

See Also:

AWS * API Reference

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

Specifies the DNS address of the DB instance.

*/ inline const Aws::String& GetAddress() const{ return m_address; } /** *

Specifies the DNS address of the DB instance.

*/ inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; } /** *

Specifies the DNS address of the DB instance.

*/ inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; } /** *

Specifies the DNS address of the DB instance.

*/ inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); } /** *

Specifies the DNS address of the DB instance.

*/ inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); } /** *

Specifies the DNS address of the DB instance.

*/ inline AwsRdsDbInstanceEndpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;} /** *

Specifies the DNS address of the DB instance.

*/ inline AwsRdsDbInstanceEndpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;} /** *

Specifies the DNS address of the DB instance.

*/ inline AwsRdsDbInstanceEndpoint& WithAddress(const char* value) { SetAddress(value); return *this;} /** *

Specifies the port that the database engine is listening on.

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

Specifies the port that the database engine is listening on.

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

Specifies the port that the database engine is listening on.

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

Specifies the port that the database engine is listening on.

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

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; } /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; } /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; } /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); } /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); } /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline AwsRdsDbInstanceEndpoint& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;} /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline AwsRdsDbInstanceEndpoint& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;} /** *

Specifies the ID that Amazon Route 53 assigns when you create a hosted * zone.

*/ inline AwsRdsDbInstanceEndpoint& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;} private: Aws::String m_address; bool m_addressHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; Aws::String m_hostedZoneId; bool m_hostedZoneIdHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws