/** * 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 Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticBeanstalk { namespace Model { /** *

A link to another environment, defined in the environment's manifest. Links * provide connection information in system properties that can be used to connect * to another environment in the same group. See Environment * Manifest (env.yaml) for details.

See Also:

AWS * API Reference

*/ class EnvironmentLink { public: AWS_ELASTICBEANSTALK_API EnvironmentLink(); AWS_ELASTICBEANSTALK_API EnvironmentLink(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API EnvironmentLink& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the link.

*/ inline const Aws::String& GetLinkName() const{ return m_linkName; } /** *

The name of the link.

*/ inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; } /** *

The name of the link.

*/ inline void SetLinkName(const Aws::String& value) { m_linkNameHasBeenSet = true; m_linkName = value; } /** *

The name of the link.

*/ inline void SetLinkName(Aws::String&& value) { m_linkNameHasBeenSet = true; m_linkName = std::move(value); } /** *

The name of the link.

*/ inline void SetLinkName(const char* value) { m_linkNameHasBeenSet = true; m_linkName.assign(value); } /** *

The name of the link.

*/ inline EnvironmentLink& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;} /** *

The name of the link.

*/ inline EnvironmentLink& WithLinkName(Aws::String&& value) { SetLinkName(std::move(value)); return *this;} /** *

The name of the link.

*/ inline EnvironmentLink& WithLinkName(const char* value) { SetLinkName(value); return *this;} /** *

The name of the linked environment (the dependency).

*/ inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } /** *

The name of the linked environment (the dependency).

*/ inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; } /** *

The name of the linked environment (the dependency).

*/ inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; } /** *

The name of the linked environment (the dependency).

*/ inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); } /** *

The name of the linked environment (the dependency).

*/ inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); } /** *

The name of the linked environment (the dependency).

*/ inline EnvironmentLink& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} /** *

The name of the linked environment (the dependency).

*/ inline EnvironmentLink& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} /** *

The name of the linked environment (the dependency).

*/ inline EnvironmentLink& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} private: Aws::String m_linkName; bool m_linkNameHasBeenSet = false; Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws