/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OAM { namespace Model { /** *

A structure that contains information about one of this source account's * links to a monitoring account.

See Also:

AWS * API Reference

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

The ARN of the link.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the link.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the link.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the link.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the link.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the link.

*/ inline ListLinksItem& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the link.

*/ inline ListLinksItem& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the link.

*/ inline ListLinksItem& WithArn(const char* value) { SetArn(value); return *this;} /** *

The random ID string that Amazon Web Services generated as part of the link * ARN.

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

The random ID string that Amazon Web Services generated as part of the link * ARN.

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

The random ID string that Amazon Web Services generated as part of the link * ARN.

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

The random ID string that Amazon Web Services generated as part of the link * ARN.

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

The random ID string that Amazon Web Services generated as part of the link * ARN.

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

The random ID string that Amazon Web Services generated as part of the link * ARN.

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

The random ID string that Amazon Web Services generated as part of the link * ARN.

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

The random ID string that Amazon Web Services generated as part of the link * ARN.

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

The label that was assigned to this link at creation, with the variables * resolved to their actual values.

*/ inline const Aws::String& GetLabel() const{ return m_label; } /** *

The label that was assigned to this link at creation, with the variables * resolved to their actual values.

*/ inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; } /** *

The label that was assigned to this link at creation, with the variables * resolved to their actual values.

*/ inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; } /** *

The label that was assigned to this link at creation, with the variables * resolved to their actual values.

*/ inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); } /** *

The label that was assigned to this link at creation, with the variables * resolved to their actual values.

*/ inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); } /** *

The label that was assigned to this link at creation, with the variables * resolved to their actual values.

*/ inline ListLinksItem& WithLabel(const Aws::String& value) { SetLabel(value); return *this;} /** *

The label that was assigned to this link at creation, with the variables * resolved to their actual values.

*/ inline ListLinksItem& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;} /** *

The label that was assigned to this link at creation, with the variables * resolved to their actual values.

*/ inline ListLinksItem& WithLabel(const char* value) { SetLabel(value); return *this;} /** *

The resource types supported by this link.

*/ inline const Aws::Vector& GetResourceTypes() const{ return m_resourceTypes; } /** *

The resource types supported by this link.

*/ inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; } /** *

The resource types supported by this link.

*/ inline void SetResourceTypes(const Aws::Vector& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; } /** *

The resource types supported by this link.

*/ inline void SetResourceTypes(Aws::Vector&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); } /** *

The resource types supported by this link.

*/ inline ListLinksItem& WithResourceTypes(const Aws::Vector& value) { SetResourceTypes(value); return *this;} /** *

The resource types supported by this link.

*/ inline ListLinksItem& WithResourceTypes(Aws::Vector&& value) { SetResourceTypes(std::move(value)); return *this;} /** *

The resource types supported by this link.

*/ inline ListLinksItem& AddResourceTypes(const Aws::String& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; } /** *

The resource types supported by this link.

*/ inline ListLinksItem& AddResourceTypes(Aws::String&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; } /** *

The resource types supported by this link.

*/ inline ListLinksItem& AddResourceTypes(const char* value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; } /** *

The ARN of the sink that this link is attached to.

*/ inline const Aws::String& GetSinkArn() const{ return m_sinkArn; } /** *

The ARN of the sink that this link is attached to.

*/ inline bool SinkArnHasBeenSet() const { return m_sinkArnHasBeenSet; } /** *

The ARN of the sink that this link is attached to.

*/ inline void SetSinkArn(const Aws::String& value) { m_sinkArnHasBeenSet = true; m_sinkArn = value; } /** *

The ARN of the sink that this link is attached to.

*/ inline void SetSinkArn(Aws::String&& value) { m_sinkArnHasBeenSet = true; m_sinkArn = std::move(value); } /** *

The ARN of the sink that this link is attached to.

*/ inline void SetSinkArn(const char* value) { m_sinkArnHasBeenSet = true; m_sinkArn.assign(value); } /** *

The ARN of the sink that this link is attached to.

*/ inline ListLinksItem& WithSinkArn(const Aws::String& value) { SetSinkArn(value); return *this;} /** *

The ARN of the sink that this link is attached to.

*/ inline ListLinksItem& WithSinkArn(Aws::String&& value) { SetSinkArn(std::move(value)); return *this;} /** *

The ARN of the sink that this link is attached to.

*/ inline ListLinksItem& WithSinkArn(const char* value) { SetSinkArn(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_label; bool m_labelHasBeenSet = false; Aws::Vector m_resourceTypes; bool m_resourceTypesHasBeenSet = false; Aws::String m_sinkArn; bool m_sinkArnHasBeenSet = false; }; } // namespace Model } // namespace OAM } // namespace Aws