/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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