/** * 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 GlueDataBrew { namespace Model { /** */ class CreateRulesetRequest : public GlueDataBrewRequest { public: AWS_GLUEDATABREW_API CreateRulesetRequest(); // 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 "CreateRuleset"; } AWS_GLUEDATABREW_API Aws::String SerializePayload() const override; /** *

The name of the ruleset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the ruleset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the ruleset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the ruleset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the ruleset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the ruleset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline CreateRulesetRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the ruleset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline CreateRulesetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the ruleset to be created. Valid characters are alphanumeric * (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

*/ inline CreateRulesetRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the ruleset.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the ruleset.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the ruleset.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the ruleset.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the ruleset.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the ruleset.

*/ inline CreateRulesetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the ruleset.

*/ inline CreateRulesetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the ruleset.

*/ inline CreateRulesetRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is * associated with.

*/ inline const Aws::String& GetTargetArn() const{ return m_targetArn; } /** *

The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is * associated with.

*/ inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is * associated with.

*/ inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } /** *

The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is * associated with.

*/ inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is * associated with.

*/ inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } /** *

The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is * associated with.

*/ inline CreateRulesetRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is * associated with.

*/ inline CreateRulesetRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is * associated with.

*/ inline CreateRulesetRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} /** *

A list of rules that are defined with the ruleset. A rule includes one or * more checks to be validated on a DataBrew dataset.

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

A list of rules that are defined with the ruleset. A rule includes one or * more checks to be validated on a DataBrew dataset.

*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *

A list of rules that are defined with the ruleset. A rule includes one or * more checks to be validated on a DataBrew dataset.

*/ inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } /** *

A list of rules that are defined with the ruleset. A rule includes one or * more checks to be validated on a DataBrew dataset.

*/ inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } /** *

A list of rules that are defined with the ruleset. A rule includes one or * more checks to be validated on a DataBrew dataset.

*/ inline CreateRulesetRequest& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

A list of rules that are defined with the ruleset. A rule includes one or * more checks to be validated on a DataBrew dataset.

*/ inline CreateRulesetRequest& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

A list of rules that are defined with the ruleset. A rule includes one or * more checks to be validated on a DataBrew dataset.

*/ inline CreateRulesetRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *

A list of rules that are defined with the ruleset. A rule includes one or * more checks to be validated on a DataBrew dataset.

*/ inline CreateRulesetRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } /** *

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

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

Metadata tags to apply to the ruleset.

*/ inline CreateRulesetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_targetArn; bool m_targetArnHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws