/** * 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 ConfigService { namespace Model { /** */ class PutConfigRuleRequest : public ConfigServiceRequest { public: AWS_CONFIGSERVICE_API PutConfigRuleRequest(); // 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 "PutConfigRule"; } AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override; AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The rule that you want to add to your account.

*/ inline const ConfigRule& GetConfigRule() const{ return m_configRule; } /** *

The rule that you want to add to your account.

*/ inline bool ConfigRuleHasBeenSet() const { return m_configRuleHasBeenSet; } /** *

The rule that you want to add to your account.

*/ inline void SetConfigRule(const ConfigRule& value) { m_configRuleHasBeenSet = true; m_configRule = value; } /** *

The rule that you want to add to your account.

*/ inline void SetConfigRule(ConfigRule&& value) { m_configRuleHasBeenSet = true; m_configRule = std::move(value); } /** *

The rule that you want to add to your account.

*/ inline PutConfigRuleRequest& WithConfigRule(const ConfigRule& value) { SetConfigRule(value); return *this;} /** *

The rule that you want to add to your account.

*/ inline PutConfigRuleRequest& WithConfigRule(ConfigRule&& value) { SetConfigRule(std::move(value)); return *this;} /** *

An array of tag object.

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

An array of tag object.

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

An array of tag object.

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

An array of tag object.

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

An array of tag object.

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

An array of tag object.

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

An array of tag object.

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

An array of tag object.

*/ inline PutConfigRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: ConfigRule m_configRule; bool m_configRuleHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws