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

Specifies a grok classifier for CreateClassifier to * create.

See Also:

AWS * API Reference

*/ class CreateGrokClassifierRequest { public: AWS_GLUE_API CreateGrokClassifierRequest(); AWS_GLUE_API CreateGrokClassifierRequest(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API CreateGrokClassifierRequest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An identifier of the data format that the classifier matches, such as * Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

*/ inline const Aws::String& GetClassification() const{ return m_classification; } /** *

An identifier of the data format that the classifier matches, such as * Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

*/ inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; } /** *

An identifier of the data format that the classifier matches, such as * Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

*/ inline void SetClassification(const Aws::String& value) { m_classificationHasBeenSet = true; m_classification = value; } /** *

An identifier of the data format that the classifier matches, such as * Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

*/ inline void SetClassification(Aws::String&& value) { m_classificationHasBeenSet = true; m_classification = std::move(value); } /** *

An identifier of the data format that the classifier matches, such as * Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

*/ inline void SetClassification(const char* value) { m_classificationHasBeenSet = true; m_classification.assign(value); } /** *

An identifier of the data format that the classifier matches, such as * Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

*/ inline CreateGrokClassifierRequest& WithClassification(const Aws::String& value) { SetClassification(value); return *this;} /** *

An identifier of the data format that the classifier matches, such as * Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

*/ inline CreateGrokClassifierRequest& WithClassification(Aws::String&& value) { SetClassification(std::move(value)); return *this;} /** *

An identifier of the data format that the classifier matches, such as * Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

*/ inline CreateGrokClassifierRequest& WithClassification(const char* value) { SetClassification(value); return *this;} /** *

The name of the new classifier.

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

The name of the new classifier.

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

The name of the new classifier.

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

The name of the new classifier.

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

The name of the new classifier.

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

The name of the new classifier.

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

The name of the new classifier.

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

The name of the new classifier.

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

The grok pattern used by this classifier.

*/ inline const Aws::String& GetGrokPattern() const{ return m_grokPattern; } /** *

The grok pattern used by this classifier.

*/ inline bool GrokPatternHasBeenSet() const { return m_grokPatternHasBeenSet; } /** *

The grok pattern used by this classifier.

*/ inline void SetGrokPattern(const Aws::String& value) { m_grokPatternHasBeenSet = true; m_grokPattern = value; } /** *

The grok pattern used by this classifier.

*/ inline void SetGrokPattern(Aws::String&& value) { m_grokPatternHasBeenSet = true; m_grokPattern = std::move(value); } /** *

The grok pattern used by this classifier.

*/ inline void SetGrokPattern(const char* value) { m_grokPatternHasBeenSet = true; m_grokPattern.assign(value); } /** *

The grok pattern used by this classifier.

*/ inline CreateGrokClassifierRequest& WithGrokPattern(const Aws::String& value) { SetGrokPattern(value); return *this;} /** *

The grok pattern used by this classifier.

*/ inline CreateGrokClassifierRequest& WithGrokPattern(Aws::String&& value) { SetGrokPattern(std::move(value)); return *this;} /** *

The grok pattern used by this classifier.

*/ inline CreateGrokClassifierRequest& WithGrokPattern(const char* value) { SetGrokPattern(value); return *this;} /** *

Optional custom grok patterns used by this classifier.

*/ inline const Aws::String& GetCustomPatterns() const{ return m_customPatterns; } /** *

Optional custom grok patterns used by this classifier.

*/ inline bool CustomPatternsHasBeenSet() const { return m_customPatternsHasBeenSet; } /** *

Optional custom grok patterns used by this classifier.

*/ inline void SetCustomPatterns(const Aws::String& value) { m_customPatternsHasBeenSet = true; m_customPatterns = value; } /** *

Optional custom grok patterns used by this classifier.

*/ inline void SetCustomPatterns(Aws::String&& value) { m_customPatternsHasBeenSet = true; m_customPatterns = std::move(value); } /** *

Optional custom grok patterns used by this classifier.

*/ inline void SetCustomPatterns(const char* value) { m_customPatternsHasBeenSet = true; m_customPatterns.assign(value); } /** *

Optional custom grok patterns used by this classifier.

*/ inline CreateGrokClassifierRequest& WithCustomPatterns(const Aws::String& value) { SetCustomPatterns(value); return *this;} /** *

Optional custom grok patterns used by this classifier.

*/ inline CreateGrokClassifierRequest& WithCustomPatterns(Aws::String&& value) { SetCustomPatterns(std::move(value)); return *this;} /** *

Optional custom grok patterns used by this classifier.

*/ inline CreateGrokClassifierRequest& WithCustomPatterns(const char* value) { SetCustomPatterns(value); return *this;} private: Aws::String m_classification; bool m_classificationHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_grokPattern; bool m_grokPatternHasBeenSet = false; Aws::String m_customPatterns; bool m_customPatternsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws