/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace OAM { namespace Model { class CreateLinkResult { public: AWS_OAM_API CreateLinkResult(); AWS_OAM_API CreateLinkResult(const Aws::AmazonWebServiceResult& result); AWS_OAM_API CreateLinkResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the link that is newly created.

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

The ARN of the link that is newly created.

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

The ARN of the link that is newly created.

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

The ARN of the link that is newly created.

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

The ARN of the link that is newly created.

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

The ARN of the link that is newly created.

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

The ARN of the link that is newly created.

*/ inline CreateLinkResult& 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 void SetId(const Aws::String& value) { 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_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_id.assign(value); } /** *

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

*/ inline CreateLinkResult& 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 CreateLinkResult& 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 CreateLinkResult& WithId(const char* value) { SetId(value); return *this;} /** *

The label that you assigned to this link. If the labelTemplate * includes variables, this field displays the variables resolved to their actual * values.

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

The label that you assigned to this link. If the labelTemplate * includes variables, this field displays the variables resolved to their actual * values.

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

The label that you assigned to this link. If the labelTemplate * includes variables, this field displays the variables resolved to their actual * values.

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

The label that you assigned to this link. If the labelTemplate * includes variables, this field displays the variables resolved to their actual * values.

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

The label that you assigned to this link. If the labelTemplate * includes variables, this field displays the variables resolved to their actual * values.

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

The label that you assigned to this link. If the labelTemplate * includes variables, this field displays the variables resolved to their actual * values.

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

The label that you assigned to this link. If the labelTemplate * includes variables, this field displays the variables resolved to their actual * values.

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

The exact label template that you specified, with the variables not * resolved.

*/ inline const Aws::String& GetLabelTemplate() const{ return m_labelTemplate; } /** *

The exact label template that you specified, with the variables not * resolved.

*/ inline void SetLabelTemplate(const Aws::String& value) { m_labelTemplate = value; } /** *

The exact label template that you specified, with the variables not * resolved.

*/ inline void SetLabelTemplate(Aws::String&& value) { m_labelTemplate = std::move(value); } /** *

The exact label template that you specified, with the variables not * resolved.

*/ inline void SetLabelTemplate(const char* value) { m_labelTemplate.assign(value); } /** *

The exact label template that you specified, with the variables not * resolved.

*/ inline CreateLinkResult& WithLabelTemplate(const Aws::String& value) { SetLabelTemplate(value); return *this;} /** *

The exact label template that you specified, with the variables not * resolved.

*/ inline CreateLinkResult& WithLabelTemplate(Aws::String&& value) { SetLabelTemplate(std::move(value)); return *this;} /** *

The exact label template that you specified, with the variables not * resolved.

*/ inline CreateLinkResult& WithLabelTemplate(const char* value) { SetLabelTemplate(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 void SetResourceTypes(const Aws::Vector& value) { m_resourceTypes = value; } /** *

The resource types supported by this link.

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

The resource types supported by this link.

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

The resource types supported by this link.

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

The resource types supported by this link.

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

The resource types supported by this link.

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

The resource types supported by this link.

*/ inline CreateLinkResult& AddResourceTypes(const char* value) { m_resourceTypes.push_back(value); return *this; } /** *

The ARN of the sink that is used for this link.

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

The ARN of the sink that is used for this link.

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

The ARN of the sink that is used for this link.

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

The ARN of the sink that is used for this link.

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

The ARN of the sink that is used for this link.

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

The ARN of the sink that is used for this link.

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

The ARN of the sink that is used for this link.

*/ inline CreateLinkResult& WithSinkArn(const char* value) { SetSinkArn(value); return *this;} /** *

The tags assigned to the link.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags assigned to the link.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

The tags assigned to the link.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

The tags assigned to the link.

*/ inline CreateLinkResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags assigned to the link.

*/ inline CreateLinkResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags assigned to the link.

*/ inline CreateLinkResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

The tags assigned to the link.

*/ inline CreateLinkResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags assigned to the link.

*/ inline CreateLinkResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags assigned to the link.

*/ inline CreateLinkResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags assigned to the link.

*/ inline CreateLinkResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags assigned to the link.

*/ inline CreateLinkResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags assigned to the link.

*/ inline CreateLinkResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateLinkResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateLinkResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateLinkResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::String m_id; Aws::String m_label; Aws::String m_labelTemplate; Aws::Vector m_resourceTypes; Aws::String m_sinkArn; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace OAM } // namespace Aws