/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudWatch { namespace Model { /** *

Contains the information that's required to enable a managed Contributor * Insights rule for an Amazon Web Services resource.

See Also:

* AWS * API Reference

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

The template name for the managed Contributor Insights rule, as returned by * ListManagedInsightRules.

*/ inline const Aws::String& GetTemplateName() const{ return m_templateName; } /** *

The template name for the managed Contributor Insights rule, as returned by * ListManagedInsightRules.

*/ inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; } /** *

The template name for the managed Contributor Insights rule, as returned by * ListManagedInsightRules.

*/ inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; } /** *

The template name for the managed Contributor Insights rule, as returned by * ListManagedInsightRules.

*/ inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); } /** *

The template name for the managed Contributor Insights rule, as returned by * ListManagedInsightRules.

*/ inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); } /** *

The template name for the managed Contributor Insights rule, as returned by * ListManagedInsightRules.

*/ inline ManagedRule& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The template name for the managed Contributor Insights rule, as returned by * ListManagedInsightRules.

*/ inline ManagedRule& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** *

The template name for the managed Contributor Insights rule, as returned by * ListManagedInsightRules.

*/ inline ManagedRule& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} /** *

The ARN of an Amazon Web Services resource that has managed Contributor * Insights rules.

*/ inline const Aws::String& GetResourceARN() const{ return m_resourceARN; } /** *

The ARN of an Amazon Web Services resource that has managed Contributor * Insights rules.

*/ inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; } /** *

The ARN of an Amazon Web Services resource that has managed Contributor * Insights rules.

*/ inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; } /** *

The ARN of an Amazon Web Services resource that has managed Contributor * Insights rules.

*/ inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); } /** *

The ARN of an Amazon Web Services resource that has managed Contributor * Insights rules.

*/ inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); } /** *

The ARN of an Amazon Web Services resource that has managed Contributor * Insights rules.

*/ inline ManagedRule& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;} /** *

The ARN of an Amazon Web Services resource that has managed Contributor * Insights rules.

*/ inline ManagedRule& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;} /** *

The ARN of an Amazon Web Services resource that has managed Contributor * Insights rules.

*/ inline ManagedRule& WithResourceARN(const char* value) { SetResourceARN(value); return *this;} /** *

A list of key-value pairs that you can associate with a managed Contributor * Insights rule. You can associate as many as 50 tags with a rule. Tags can help * you organize and categorize your resources. You also can use them to scope user * permissions by granting a user permission to access or change only the resources * that have certain tag values. To associate tags with a rule, you must have the * cloudwatch:TagResource permission in addition to the * cloudwatch:PutInsightRule permission. If you are using this * operation to update an existing Contributor Insights rule, any tags that you * specify in this parameter are ignored. To change the tags of an existing rule, * use TagResource.

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

A list of key-value pairs that you can associate with a managed Contributor * Insights rule. You can associate as many as 50 tags with a rule. Tags can help * you organize and categorize your resources. You also can use them to scope user * permissions by granting a user permission to access or change only the resources * that have certain tag values. To associate tags with a rule, you must have the * cloudwatch:TagResource permission in addition to the * cloudwatch:PutInsightRule permission. If you are using this * operation to update an existing Contributor Insights rule, any tags that you * specify in this parameter are ignored. To change the tags of an existing rule, * use TagResource.

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

A list of key-value pairs that you can associate with a managed Contributor * Insights rule. You can associate as many as 50 tags with a rule. Tags can help * you organize and categorize your resources. You also can use them to scope user * permissions by granting a user permission to access or change only the resources * that have certain tag values. To associate tags with a rule, you must have the * cloudwatch:TagResource permission in addition to the * cloudwatch:PutInsightRule permission. If you are using this * operation to update an existing Contributor Insights rule, any tags that you * specify in this parameter are ignored. To change the tags of an existing rule, * use TagResource.

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

A list of key-value pairs that you can associate with a managed Contributor * Insights rule. You can associate as many as 50 tags with a rule. Tags can help * you organize and categorize your resources. You also can use them to scope user * permissions by granting a user permission to access or change only the resources * that have certain tag values. To associate tags with a rule, you must have the * cloudwatch:TagResource permission in addition to the * cloudwatch:PutInsightRule permission. If you are using this * operation to update an existing Contributor Insights rule, any tags that you * specify in this parameter are ignored. To change the tags of an existing rule, * use TagResource.

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

A list of key-value pairs that you can associate with a managed Contributor * Insights rule. You can associate as many as 50 tags with a rule. Tags can help * you organize and categorize your resources. You also can use them to scope user * permissions by granting a user permission to access or change only the resources * that have certain tag values. To associate tags with a rule, you must have the * cloudwatch:TagResource permission in addition to the * cloudwatch:PutInsightRule permission. If you are using this * operation to update an existing Contributor Insights rule, any tags that you * specify in this parameter are ignored. To change the tags of an existing rule, * use TagResource.

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

A list of key-value pairs that you can associate with a managed Contributor * Insights rule. You can associate as many as 50 tags with a rule. Tags can help * you organize and categorize your resources. You also can use them to scope user * permissions by granting a user permission to access or change only the resources * that have certain tag values. To associate tags with a rule, you must have the * cloudwatch:TagResource permission in addition to the * cloudwatch:PutInsightRule permission. If you are using this * operation to update an existing Contributor Insights rule, any tags that you * specify in this parameter are ignored. To change the tags of an existing rule, * use TagResource.

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

A list of key-value pairs that you can associate with a managed Contributor * Insights rule. You can associate as many as 50 tags with a rule. Tags can help * you organize and categorize your resources. You also can use them to scope user * permissions by granting a user permission to access or change only the resources * that have certain tag values. To associate tags with a rule, you must have the * cloudwatch:TagResource permission in addition to the * cloudwatch:PutInsightRule permission. If you are using this * operation to update an existing Contributor Insights rule, any tags that you * specify in this parameter are ignored. To change the tags of an existing rule, * use TagResource.

*/ inline ManagedRule& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of key-value pairs that you can associate with a managed Contributor * Insights rule. You can associate as many as 50 tags with a rule. Tags can help * you organize and categorize your resources. You also can use them to scope user * permissions by granting a user permission to access or change only the resources * that have certain tag values. To associate tags with a rule, you must have the * cloudwatch:TagResource permission in addition to the * cloudwatch:PutInsightRule permission. If you are using this * operation to update an existing Contributor Insights rule, any tags that you * specify in this parameter are ignored. To change the tags of an existing rule, * use TagResource.

*/ inline ManagedRule& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_templateName; bool m_templateNameHasBeenSet = false; Aws::String m_resourceARN; bool m_resourceARNHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws