/** * 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 GetSchemaByDefinitionRequest : public GlueRequest { public: AWS_GLUE_API GetSchemaByDefinitionRequest(); // 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 "GetSchemaByDefinition"; } AWS_GLUE_API Aws::String SerializePayload() const override; AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

This is a wrapper structure to contain schema identity fields. The structure * contains:

  • SchemaId$SchemaArn: The Amazon Resource Name (ARN) of * the schema. One of SchemaArn or SchemaName has to be * provided.

  • SchemaId$SchemaName: The name of the schema. One of * SchemaArn or SchemaName has to be provided.

  • *
*/ inline const SchemaId& GetSchemaId() const{ return m_schemaId; } /** *

This is a wrapper structure to contain schema identity fields. The structure * contains:

  • SchemaId$SchemaArn: The Amazon Resource Name (ARN) of * the schema. One of SchemaArn or SchemaName has to be * provided.

  • SchemaId$SchemaName: The name of the schema. One of * SchemaArn or SchemaName has to be provided.

  • *
*/ inline bool SchemaIdHasBeenSet() const { return m_schemaIdHasBeenSet; } /** *

This is a wrapper structure to contain schema identity fields. The structure * contains:

  • SchemaId$SchemaArn: The Amazon Resource Name (ARN) of * the schema. One of SchemaArn or SchemaName has to be * provided.

  • SchemaId$SchemaName: The name of the schema. One of * SchemaArn or SchemaName has to be provided.

  • *
*/ inline void SetSchemaId(const SchemaId& value) { m_schemaIdHasBeenSet = true; m_schemaId = value; } /** *

This is a wrapper structure to contain schema identity fields. The structure * contains:

  • SchemaId$SchemaArn: The Amazon Resource Name (ARN) of * the schema. One of SchemaArn or SchemaName has to be * provided.

  • SchemaId$SchemaName: The name of the schema. One of * SchemaArn or SchemaName has to be provided.

  • *
*/ inline void SetSchemaId(SchemaId&& value) { m_schemaIdHasBeenSet = true; m_schemaId = std::move(value); } /** *

This is a wrapper structure to contain schema identity fields. The structure * contains:

  • SchemaId$SchemaArn: The Amazon Resource Name (ARN) of * the schema. One of SchemaArn or SchemaName has to be * provided.

  • SchemaId$SchemaName: The name of the schema. One of * SchemaArn or SchemaName has to be provided.

  • *
*/ inline GetSchemaByDefinitionRequest& WithSchemaId(const SchemaId& value) { SetSchemaId(value); return *this;} /** *

This is a wrapper structure to contain schema identity fields. The structure * contains:

  • SchemaId$SchemaArn: The Amazon Resource Name (ARN) of * the schema. One of SchemaArn or SchemaName has to be * provided.

  • SchemaId$SchemaName: The name of the schema. One of * SchemaArn or SchemaName has to be provided.

  • *
*/ inline GetSchemaByDefinitionRequest& WithSchemaId(SchemaId&& value) { SetSchemaId(std::move(value)); return *this;} /** *

The definition of the schema for which schema details are required.

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

The definition of the schema for which schema details are required.

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

The definition of the schema for which schema details are required.

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

The definition of the schema for which schema details are required.

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

The definition of the schema for which schema details are required.

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

The definition of the schema for which schema details are required.

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

The definition of the schema for which schema details are required.

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

The definition of the schema for which schema details are required.

*/ inline GetSchemaByDefinitionRequest& WithSchemaDefinition(const char* value) { SetSchemaDefinition(value); return *this;} private: SchemaId m_schemaId; bool m_schemaIdHasBeenSet = false; Aws::String m_schemaDefinition; bool m_schemaDefinitionHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws