1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/securityhub/SecurityHub_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace SecurityHub 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Contains information about a link to another environment that is in the same 28 * group.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsElasticBeanstalkEnvironmentEnvironmentLink">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_SECURITYHUB_API AwsElasticBeanstalkEnvironmentEnvironmentLink 33 { 34 public: 35 AwsElasticBeanstalkEnvironmentEnvironmentLink(); 36 AwsElasticBeanstalkEnvironmentEnvironmentLink(Aws::Utils::Json::JsonView jsonValue); 37 AwsElasticBeanstalkEnvironmentEnvironmentLink& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The name of the linked environment.</p> 43 */ GetEnvironmentName()44 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } 45 46 /** 47 * <p>The name of the linked environment.</p> 48 */ EnvironmentNameHasBeenSet()49 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; } 50 51 /** 52 * <p>The name of the linked environment.</p> 53 */ SetEnvironmentName(const Aws::String & value)54 inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; } 55 56 /** 57 * <p>The name of the linked environment.</p> 58 */ SetEnvironmentName(Aws::String && value)59 inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); } 60 61 /** 62 * <p>The name of the linked environment.</p> 63 */ SetEnvironmentName(const char * value)64 inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); } 65 66 /** 67 * <p>The name of the linked environment.</p> 68 */ WithEnvironmentName(const Aws::String & value)69 inline AwsElasticBeanstalkEnvironmentEnvironmentLink& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} 70 71 /** 72 * <p>The name of the linked environment.</p> 73 */ WithEnvironmentName(Aws::String && value)74 inline AwsElasticBeanstalkEnvironmentEnvironmentLink& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} 75 76 /** 77 * <p>The name of the linked environment.</p> 78 */ WithEnvironmentName(const char * value)79 inline AwsElasticBeanstalkEnvironmentEnvironmentLink& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} 80 81 82 /** 83 * <p>The name of the environment link.</p> 84 */ GetLinkName()85 inline const Aws::String& GetLinkName() const{ return m_linkName; } 86 87 /** 88 * <p>The name of the environment link.</p> 89 */ LinkNameHasBeenSet()90 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; } 91 92 /** 93 * <p>The name of the environment link.</p> 94 */ SetLinkName(const Aws::String & value)95 inline void SetLinkName(const Aws::String& value) { m_linkNameHasBeenSet = true; m_linkName = value; } 96 97 /** 98 * <p>The name of the environment link.</p> 99 */ SetLinkName(Aws::String && value)100 inline void SetLinkName(Aws::String&& value) { m_linkNameHasBeenSet = true; m_linkName = std::move(value); } 101 102 /** 103 * <p>The name of the environment link.</p> 104 */ SetLinkName(const char * value)105 inline void SetLinkName(const char* value) { m_linkNameHasBeenSet = true; m_linkName.assign(value); } 106 107 /** 108 * <p>The name of the environment link.</p> 109 */ WithLinkName(const Aws::String & value)110 inline AwsElasticBeanstalkEnvironmentEnvironmentLink& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;} 111 112 /** 113 * <p>The name of the environment link.</p> 114 */ WithLinkName(Aws::String && value)115 inline AwsElasticBeanstalkEnvironmentEnvironmentLink& WithLinkName(Aws::String&& value) { SetLinkName(std::move(value)); return *this;} 116 117 /** 118 * <p>The name of the environment link.</p> 119 */ WithLinkName(const char * value)120 inline AwsElasticBeanstalkEnvironmentEnvironmentLink& WithLinkName(const char* value) { SetLinkName(value); return *this;} 121 122 private: 123 124 Aws::String m_environmentName; 125 bool m_environmentNameHasBeenSet; 126 127 Aws::String m_linkName; 128 bool m_linkNameHasBeenSet; 129 }; 130 131 } // namespace Model 132 } // namespace SecurityHub 133 } // namespace Aws 134