/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Glue { namespace Model { /** */ class CheckSchemaVersionValidityRequest : public GlueRequest { public: AWS_GLUE_API CheckSchemaVersionValidityRequest(); // 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 "CheckSchemaVersionValidity"; } AWS_GLUE_API Aws::String SerializePayload() const override; AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The data format of the schema definition. Currently AVRO, * JSON and PROTOBUF are supported.

*/ inline const DataFormat& GetDataFormat() const{ return m_dataFormat; } /** *

The data format of the schema definition. Currently AVRO, * JSON and PROTOBUF are supported.

*/ inline bool DataFormatHasBeenSet() const { return m_dataFormatHasBeenSet; } /** *

The data format of the schema definition. Currently AVRO, * JSON and PROTOBUF are supported.

*/ inline void SetDataFormat(const DataFormat& value) { m_dataFormatHasBeenSet = true; m_dataFormat = value; } /** *

The data format of the schema definition. Currently AVRO, * JSON and PROTOBUF are supported.

*/ inline void SetDataFormat(DataFormat&& value) { m_dataFormatHasBeenSet = true; m_dataFormat = std::move(value); } /** *

The data format of the schema definition. Currently AVRO, * JSON and PROTOBUF are supported.

*/ inline CheckSchemaVersionValidityRequest& WithDataFormat(const DataFormat& value) { SetDataFormat(value); return *this;} /** *

The data format of the schema definition. Currently AVRO, * JSON and PROTOBUF are supported.

*/ inline CheckSchemaVersionValidityRequest& WithDataFormat(DataFormat&& value) { SetDataFormat(std::move(value)); return *this;} /** *

The definition of the schema that has to be validated.

*/ inline const Aws::String& GetSchemaDefinition() const{ return m_schemaDefinition; } /** *

The definition of the schema that has to be validated.

*/ inline bool SchemaDefinitionHasBeenSet() const { return m_schemaDefinitionHasBeenSet; } /** *

The definition of the schema that has to be validated.

*/ inline void SetSchemaDefinition(const Aws::String& value) { m_schemaDefinitionHasBeenSet = true; m_schemaDefinition = value; } /** *

The definition of the schema that has to be validated.

*/ inline void SetSchemaDefinition(Aws::String&& value) { m_schemaDefinitionHasBeenSet = true; m_schemaDefinition = std::move(value); } /** *

The definition of the schema that has to be validated.

*/ inline void SetSchemaDefinition(const char* value) { m_schemaDefinitionHasBeenSet = true; m_schemaDefinition.assign(value); } /** *

The definition of the schema that has to be validated.

*/ inline CheckSchemaVersionValidityRequest& WithSchemaDefinition(const Aws::String& value) { SetSchemaDefinition(value); return *this;} /** *

The definition of the schema that has to be validated.

*/ inline CheckSchemaVersionValidityRequest& WithSchemaDefinition(Aws::String&& value) { SetSchemaDefinition(std::move(value)); return *this;} /** *

The definition of the schema that has to be validated.

*/ inline CheckSchemaVersionValidityRequest& WithSchemaDefinition(const char* value) { SetSchemaDefinition(value); return *this;} private: DataFormat m_dataFormat; bool m_dataFormatHasBeenSet = false; Aws::String m_schemaDefinition; bool m_schemaDefinitionHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws