/** * 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 an XML classifier for CreateClassifier to * create.

See Also:

AWS * API Reference

*/ class CreateXMLClassifierRequest { public: AWS_GLUE_API CreateXMLClassifierRequest(); AWS_GLUE_API CreateXMLClassifierRequest(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API CreateXMLClassifierRequest& 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.

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

An identifier of the data format that the classifier matches.

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

An identifier of the data format that the classifier matches.

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

An identifier of the data format that the classifier matches.

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

An identifier of the data format that the classifier matches.

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

An identifier of the data format that the classifier matches.

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

An identifier of the data format that the classifier matches.

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

An identifier of the data format that the classifier matches.

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

The name of the classifier.

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

The name of the classifier.

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

The name of the classifier.

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

The name of the classifier.

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

The name of the classifier.

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

The name of the classifier.

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

The name of the classifier.

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

The name of the classifier.

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

The XML tag designating the element that contains each record in an XML * document being parsed. This can't identify a self-closing element (closed by * />). An empty row element that contains only attributes can be * parsed as long as it ends with a closing tag (for example, <row * item_a="A" item_b="B"></row> is okay, but <row * item_a="A" item_b="B" /> is not).

*/ inline const Aws::String& GetRowTag() const{ return m_rowTag; } /** *

The XML tag designating the element that contains each record in an XML * document being parsed. This can't identify a self-closing element (closed by * />). An empty row element that contains only attributes can be * parsed as long as it ends with a closing tag (for example, <row * item_a="A" item_b="B"></row> is okay, but <row * item_a="A" item_b="B" /> is not).

*/ inline bool RowTagHasBeenSet() const { return m_rowTagHasBeenSet; } /** *

The XML tag designating the element that contains each record in an XML * document being parsed. This can't identify a self-closing element (closed by * />). An empty row element that contains only attributes can be * parsed as long as it ends with a closing tag (for example, <row * item_a="A" item_b="B"></row> is okay, but <row * item_a="A" item_b="B" /> is not).

*/ inline void SetRowTag(const Aws::String& value) { m_rowTagHasBeenSet = true; m_rowTag = value; } /** *

The XML tag designating the element that contains each record in an XML * document being parsed. This can't identify a self-closing element (closed by * />). An empty row element that contains only attributes can be * parsed as long as it ends with a closing tag (for example, <row * item_a="A" item_b="B"></row> is okay, but <row * item_a="A" item_b="B" /> is not).

*/ inline void SetRowTag(Aws::String&& value) { m_rowTagHasBeenSet = true; m_rowTag = std::move(value); } /** *

The XML tag designating the element that contains each record in an XML * document being parsed. This can't identify a self-closing element (closed by * />). An empty row element that contains only attributes can be * parsed as long as it ends with a closing tag (for example, <row * item_a="A" item_b="B"></row> is okay, but <row * item_a="A" item_b="B" /> is not).

*/ inline void SetRowTag(const char* value) { m_rowTagHasBeenSet = true; m_rowTag.assign(value); } /** *

The XML tag designating the element that contains each record in an XML * document being parsed. This can't identify a self-closing element (closed by * />). An empty row element that contains only attributes can be * parsed as long as it ends with a closing tag (for example, <row * item_a="A" item_b="B"></row> is okay, but <row * item_a="A" item_b="B" /> is not).

*/ inline CreateXMLClassifierRequest& WithRowTag(const Aws::String& value) { SetRowTag(value); return *this;} /** *

The XML tag designating the element that contains each record in an XML * document being parsed. This can't identify a self-closing element (closed by * />). An empty row element that contains only attributes can be * parsed as long as it ends with a closing tag (for example, <row * item_a="A" item_b="B"></row> is okay, but <row * item_a="A" item_b="B" /> is not).

*/ inline CreateXMLClassifierRequest& WithRowTag(Aws::String&& value) { SetRowTag(std::move(value)); return *this;} /** *

The XML tag designating the element that contains each record in an XML * document being parsed. This can't identify a self-closing element (closed by * />). An empty row element that contains only attributes can be * parsed as long as it ends with a closing tag (for example, <row * item_a="A" item_b="B"></row> is okay, but <row * item_a="A" item_b="B" /> is not).

*/ inline CreateXMLClassifierRequest& WithRowTag(const char* value) { SetRowTag(value); return *this;} private: Aws::String m_classification; bool m_classificationHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_rowTag; bool m_rowTagHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws