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

Describes an potential intermediate component of a feasible * path.

See Also:

AWS * API Reference

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

The ID of the component.

*/ inline const Aws::String& GetComponentId() const{ return m_componentId; } /** *

The ID of the component.

*/ inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; } /** *

The ID of the component.

*/ inline void SetComponentId(const Aws::String& value) { m_componentIdHasBeenSet = true; m_componentId = value; } /** *

The ID of the component.

*/ inline void SetComponentId(Aws::String&& value) { m_componentIdHasBeenSet = true; m_componentId = std::move(value); } /** *

The ID of the component.

*/ inline void SetComponentId(const char* value) { m_componentIdHasBeenSet = true; m_componentId.assign(value); } /** *

The ID of the component.

*/ inline AlternatePathHint& WithComponentId(const Aws::String& value) { SetComponentId(value); return *this;} /** *

The ID of the component.

*/ inline AlternatePathHint& WithComponentId(Aws::String&& value) { SetComponentId(std::move(value)); return *this;} /** *

The ID of the component.

*/ inline AlternatePathHint& WithComponentId(const char* value) { SetComponentId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the component.

*/ inline const Aws::String& GetComponentArn() const{ return m_componentArn; } /** *

The Amazon Resource Name (ARN) of the component.

*/ inline bool ComponentArnHasBeenSet() const { return m_componentArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the component.

*/ inline void SetComponentArn(const Aws::String& value) { m_componentArnHasBeenSet = true; m_componentArn = value; } /** *

The Amazon Resource Name (ARN) of the component.

*/ inline void SetComponentArn(Aws::String&& value) { m_componentArnHasBeenSet = true; m_componentArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the component.

*/ inline void SetComponentArn(const char* value) { m_componentArnHasBeenSet = true; m_componentArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the component.

*/ inline AlternatePathHint& WithComponentArn(const Aws::String& value) { SetComponentArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the component.

*/ inline AlternatePathHint& WithComponentArn(Aws::String&& value) { SetComponentArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the component.

*/ inline AlternatePathHint& WithComponentArn(const char* value) { SetComponentArn(value); return *this;} private: Aws::String m_componentId; bool m_componentIdHasBeenSet = false; Aws::String m_componentArn; bool m_componentArnHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws