/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace OAM { namespace Model { /** */ class CreateLinkRequest : public OAMRequest { public: AWS_OAM_API CreateLinkRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateLink"; } AWS_OAM_API Aws::String SerializePayload() const override; /** *

Specify a friendly human-readable name to use to identify this source account * when you are viewing data from it in the monitoring account.

You can use * a custom label or use the following variables:

  • * $AccountName is the name of the account

  • * $AccountEmail is the globally unique email address of the * account

  • $AccountEmailNoDomain is the email * address of the account without the domain name

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

Specify a friendly human-readable name to use to identify this source account * when you are viewing data from it in the monitoring account.

You can use * a custom label or use the following variables:

  • * $AccountName is the name of the account

  • * $AccountEmail is the globally unique email address of the * account

  • $AccountEmailNoDomain is the email * address of the account without the domain name

*/ inline bool LabelTemplateHasBeenSet() const { return m_labelTemplateHasBeenSet; } /** *

Specify a friendly human-readable name to use to identify this source account * when you are viewing data from it in the monitoring account.

You can use * a custom label or use the following variables:

  • * $AccountName is the name of the account

  • * $AccountEmail is the globally unique email address of the * account

  • $AccountEmailNoDomain is the email * address of the account without the domain name

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

Specify a friendly human-readable name to use to identify this source account * when you are viewing data from it in the monitoring account.

You can use * a custom label or use the following variables:

  • * $AccountName is the name of the account

  • * $AccountEmail is the globally unique email address of the * account

  • $AccountEmailNoDomain is the email * address of the account without the domain name

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

Specify a friendly human-readable name to use to identify this source account * when you are viewing data from it in the monitoring account.

You can use * a custom label or use the following variables:

  • * $AccountName is the name of the account

  • * $AccountEmail is the globally unique email address of the * account

  • $AccountEmailNoDomain is the email * address of the account without the domain name

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

Specify a friendly human-readable name to use to identify this source account * when you are viewing data from it in the monitoring account.

You can use * a custom label or use the following variables:

  • * $AccountName is the name of the account

  • * $AccountEmail is the globally unique email address of the * account

  • $AccountEmailNoDomain is the email * address of the account without the domain name

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

Specify a friendly human-readable name to use to identify this source account * when you are viewing data from it in the monitoring account.

You can use * a custom label or use the following variables:

  • * $AccountName is the name of the account

  • * $AccountEmail is the globally unique email address of the * account

  • $AccountEmailNoDomain is the email * address of the account without the domain name

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

Specify a friendly human-readable name to use to identify this source account * when you are viewing data from it in the monitoring account.

You can use * a custom label or use the following variables:

  • * $AccountName is the name of the account

  • * $AccountEmail is the globally unique email address of the * account

  • $AccountEmailNoDomain is the email * address of the account without the domain name

*/ inline CreateLinkRequest& WithLabelTemplate(const char* value) { SetLabelTemplate(value); return *this;} /** *

An array of strings that define which types of data that the source account * shares with the monitoring account.

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

An array of strings that define which types of data that the source account * shares with the monitoring account.

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

An array of strings that define which types of data that the source account * shares with the monitoring account.

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

An array of strings that define which types of data that the source account * shares with the monitoring account.

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

An array of strings that define which types of data that the source account * shares with the monitoring account.

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

An array of strings that define which types of data that the source account * shares with the monitoring account.

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

An array of strings that define which types of data that the source account * shares with the monitoring account.

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

An array of strings that define which types of data that the source account * shares with the monitoring account.

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

The ARN of the sink to use to create this link. You can use ListSinks * to find the ARNs of sinks.

For more information about sinks, see CreateSink.

*/ inline const Aws::String& GetSinkIdentifier() const{ return m_sinkIdentifier; } /** *

The ARN of the sink to use to create this link. You can use ListSinks * to find the ARNs of sinks.

For more information about sinks, see CreateSink.

*/ inline bool SinkIdentifierHasBeenSet() const { return m_sinkIdentifierHasBeenSet; } /** *

The ARN of the sink to use to create this link. You can use ListSinks * to find the ARNs of sinks.

For more information about sinks, see CreateSink.

*/ inline void SetSinkIdentifier(const Aws::String& value) { m_sinkIdentifierHasBeenSet = true; m_sinkIdentifier = value; } /** *

The ARN of the sink to use to create this link. You can use ListSinks * to find the ARNs of sinks.

For more information about sinks, see CreateSink.

*/ inline void SetSinkIdentifier(Aws::String&& value) { m_sinkIdentifierHasBeenSet = true; m_sinkIdentifier = std::move(value); } /** *

The ARN of the sink to use to create this link. You can use ListSinks * to find the ARNs of sinks.

For more information about sinks, see CreateSink.

*/ inline void SetSinkIdentifier(const char* value) { m_sinkIdentifierHasBeenSet = true; m_sinkIdentifier.assign(value); } /** *

The ARN of the sink to use to create this link. You can use ListSinks * to find the ARNs of sinks.

For more information about sinks, see CreateSink.

*/ inline CreateLinkRequest& WithSinkIdentifier(const Aws::String& value) { SetSinkIdentifier(value); return *this;} /** *

The ARN of the sink to use to create this link. You can use ListSinks * to find the ARNs of sinks.

For more information about sinks, see CreateSink.

*/ inline CreateLinkRequest& WithSinkIdentifier(Aws::String&& value) { SetSinkIdentifier(std::move(value)); return *this;} /** *

The ARN of the sink to use to create this link. You can use ListSinks * to find the ARNs of sinks.

For more information about sinks, see CreateSink.

*/ inline CreateLinkRequest& WithSinkIdentifier(const char* value) { SetSinkIdentifier(value); return *this;} /** *

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

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

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

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

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

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

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

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

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

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

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

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

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

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

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

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

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

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

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

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

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

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

Assigns one or more tags (key-value pairs) to the link.

Tags can help * you organize and categorize your resources. You can also use them to scope user * permissions by granting a user permission to access or change only resources * with certain tag values.

For more information about using tags to control * access, see Controlling * access to Amazon Web Services resources using tags.

*/ inline CreateLinkRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_labelTemplate; bool m_labelTemplateHasBeenSet = false; Aws::Vector m_resourceTypes; bool m_resourceTypesHasBeenSet = false; Aws::String m_sinkIdentifier; bool m_sinkIdentifierHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace OAM } // namespace Aws