/** * 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 Glue { namespace Model { /** */ class CreateClassifierRequest : public GlueRequest { public: AWS_GLUE_API CreateClassifierRequest(); // 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 "CreateClassifier"; } AWS_GLUE_API Aws::String SerializePayload() const override; AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A GrokClassifier object specifying the classifier to create.

*/ inline const CreateGrokClassifierRequest& GetGrokClassifier() const{ return m_grokClassifier; } /** *

A GrokClassifier object specifying the classifier to create.

*/ inline bool GrokClassifierHasBeenSet() const { return m_grokClassifierHasBeenSet; } /** *

A GrokClassifier object specifying the classifier to create.

*/ inline void SetGrokClassifier(const CreateGrokClassifierRequest& value) { m_grokClassifierHasBeenSet = true; m_grokClassifier = value; } /** *

A GrokClassifier object specifying the classifier to create.

*/ inline void SetGrokClassifier(CreateGrokClassifierRequest&& value) { m_grokClassifierHasBeenSet = true; m_grokClassifier = std::move(value); } /** *

A GrokClassifier object specifying the classifier to create.

*/ inline CreateClassifierRequest& WithGrokClassifier(const CreateGrokClassifierRequest& value) { SetGrokClassifier(value); return *this;} /** *

A GrokClassifier object specifying the classifier to create.

*/ inline CreateClassifierRequest& WithGrokClassifier(CreateGrokClassifierRequest&& value) { SetGrokClassifier(std::move(value)); return *this;} /** *

An XMLClassifier object specifying the classifier to create.

*/ inline const CreateXMLClassifierRequest& GetXMLClassifier() const{ return m_xMLClassifier; } /** *

An XMLClassifier object specifying the classifier to create.

*/ inline bool XMLClassifierHasBeenSet() const { return m_xMLClassifierHasBeenSet; } /** *

An XMLClassifier object specifying the classifier to create.

*/ inline void SetXMLClassifier(const CreateXMLClassifierRequest& value) { m_xMLClassifierHasBeenSet = true; m_xMLClassifier = value; } /** *

An XMLClassifier object specifying the classifier to create.

*/ inline void SetXMLClassifier(CreateXMLClassifierRequest&& value) { m_xMLClassifierHasBeenSet = true; m_xMLClassifier = std::move(value); } /** *

An XMLClassifier object specifying the classifier to create.

*/ inline CreateClassifierRequest& WithXMLClassifier(const CreateXMLClassifierRequest& value) { SetXMLClassifier(value); return *this;} /** *

An XMLClassifier object specifying the classifier to create.

*/ inline CreateClassifierRequest& WithXMLClassifier(CreateXMLClassifierRequest&& value) { SetXMLClassifier(std::move(value)); return *this;} /** *

A JsonClassifier object specifying the classifier to create.

*/ inline const CreateJsonClassifierRequest& GetJsonClassifier() const{ return m_jsonClassifier; } /** *

A JsonClassifier object specifying the classifier to create.

*/ inline bool JsonClassifierHasBeenSet() const { return m_jsonClassifierHasBeenSet; } /** *

A JsonClassifier object specifying the classifier to create.

*/ inline void SetJsonClassifier(const CreateJsonClassifierRequest& value) { m_jsonClassifierHasBeenSet = true; m_jsonClassifier = value; } /** *

A JsonClassifier object specifying the classifier to create.

*/ inline void SetJsonClassifier(CreateJsonClassifierRequest&& value) { m_jsonClassifierHasBeenSet = true; m_jsonClassifier = std::move(value); } /** *

A JsonClassifier object specifying the classifier to create.

*/ inline CreateClassifierRequest& WithJsonClassifier(const CreateJsonClassifierRequest& value) { SetJsonClassifier(value); return *this;} /** *

A JsonClassifier object specifying the classifier to create.

*/ inline CreateClassifierRequest& WithJsonClassifier(CreateJsonClassifierRequest&& value) { SetJsonClassifier(std::move(value)); return *this;} /** *

A CsvClassifier object specifying the classifier to create.

*/ inline const CreateCsvClassifierRequest& GetCsvClassifier() const{ return m_csvClassifier; } /** *

A CsvClassifier object specifying the classifier to create.

*/ inline bool CsvClassifierHasBeenSet() const { return m_csvClassifierHasBeenSet; } /** *

A CsvClassifier object specifying the classifier to create.

*/ inline void SetCsvClassifier(const CreateCsvClassifierRequest& value) { m_csvClassifierHasBeenSet = true; m_csvClassifier = value; } /** *

A CsvClassifier object specifying the classifier to create.

*/ inline void SetCsvClassifier(CreateCsvClassifierRequest&& value) { m_csvClassifierHasBeenSet = true; m_csvClassifier = std::move(value); } /** *

A CsvClassifier object specifying the classifier to create.

*/ inline CreateClassifierRequest& WithCsvClassifier(const CreateCsvClassifierRequest& value) { SetCsvClassifier(value); return *this;} /** *

A CsvClassifier object specifying the classifier to create.

*/ inline CreateClassifierRequest& WithCsvClassifier(CreateCsvClassifierRequest&& value) { SetCsvClassifier(std::move(value)); return *this;} private: CreateGrokClassifierRequest m_grokClassifier; bool m_grokClassifierHasBeenSet = false; CreateXMLClassifierRequest m_xMLClassifier; bool m_xMLClassifierHasBeenSet = false; CreateJsonClassifierRequest m_jsonClassifier; bool m_jsonClassifierHasBeenSet = false; CreateCsvClassifierRequest m_csvClassifier; bool m_csvClassifierHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws