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

Describes the destination of a record.

See Also:

AWS * API Reference

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

The ID of the resource created at the destination.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the resource created at the destination.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the resource created at the destination.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the resource created at the destination.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the resource created at the destination.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the resource created at the destination.

*/ inline DestinationInfo& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the resource created at the destination.

*/ inline DestinationInfo& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the resource created at the destination.

*/ inline DestinationInfo& WithId(const char* value) { SetId(value); return *this;} /** *

The destination service of the record.

*/ inline const Aws::String& GetService() const{ return m_service; } /** *

The destination service of the record.

*/ inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; } /** *

The destination service of the record.

*/ inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; } /** *

The destination service of the record.

*/ inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); } /** *

The destination service of the record.

*/ inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); } /** *

The destination service of the record.

*/ inline DestinationInfo& WithService(const Aws::String& value) { SetService(value); return *this;} /** *

The destination service of the record.

*/ inline DestinationInfo& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;} /** *

The destination service of the record.

*/ inline DestinationInfo& WithService(const char* value) { SetService(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_service; bool m_serviceHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws