/** * 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 UpdateSchemaRequest : public GlueRequest { public: AWS_GLUE_API UpdateSchemaRequest(); // 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 "UpdateSchema"; } 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 UpdateSchemaRequest& 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 UpdateSchemaRequest& WithSchemaId(SchemaId&& value) { SetSchemaId(std::move(value)); return *this;} /** *

Version number required for check pointing. One of VersionNumber * or Compatibility has to be provided.

*/ inline const SchemaVersionNumber& GetSchemaVersionNumber() const{ return m_schemaVersionNumber; } /** *

Version number required for check pointing. One of VersionNumber * or Compatibility has to be provided.

*/ inline bool SchemaVersionNumberHasBeenSet() const { return m_schemaVersionNumberHasBeenSet; } /** *

Version number required for check pointing. One of VersionNumber * or Compatibility has to be provided.

*/ inline void SetSchemaVersionNumber(const SchemaVersionNumber& value) { m_schemaVersionNumberHasBeenSet = true; m_schemaVersionNumber = value; } /** *

Version number required for check pointing. One of VersionNumber * or Compatibility has to be provided.

*/ inline void SetSchemaVersionNumber(SchemaVersionNumber&& value) { m_schemaVersionNumberHasBeenSet = true; m_schemaVersionNumber = std::move(value); } /** *

Version number required for check pointing. One of VersionNumber * or Compatibility has to be provided.

*/ inline UpdateSchemaRequest& WithSchemaVersionNumber(const SchemaVersionNumber& value) { SetSchemaVersionNumber(value); return *this;} /** *

Version number required for check pointing. One of VersionNumber * or Compatibility has to be provided.

*/ inline UpdateSchemaRequest& WithSchemaVersionNumber(SchemaVersionNumber&& value) { SetSchemaVersionNumber(std::move(value)); return *this;} /** *

The new compatibility setting for the schema.

*/ inline const Compatibility& GetCompatibility() const{ return m_compatibility; } /** *

The new compatibility setting for the schema.

*/ inline bool CompatibilityHasBeenSet() const { return m_compatibilityHasBeenSet; } /** *

The new compatibility setting for the schema.

*/ inline void SetCompatibility(const Compatibility& value) { m_compatibilityHasBeenSet = true; m_compatibility = value; } /** *

The new compatibility setting for the schema.

*/ inline void SetCompatibility(Compatibility&& value) { m_compatibilityHasBeenSet = true; m_compatibility = std::move(value); } /** *

The new compatibility setting for the schema.

*/ inline UpdateSchemaRequest& WithCompatibility(const Compatibility& value) { SetCompatibility(value); return *this;} /** *

The new compatibility setting for the schema.

*/ inline UpdateSchemaRequest& WithCompatibility(Compatibility&& value) { SetCompatibility(std::move(value)); return *this;} /** *

The new description for the schema.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The new description for the schema.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The new description for the schema.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The new description for the schema.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The new description for the schema.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The new description for the schema.

*/ inline UpdateSchemaRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The new description for the schema.

*/ inline UpdateSchemaRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The new description for the schema.

*/ inline UpdateSchemaRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: SchemaId m_schemaId; bool m_schemaIdHasBeenSet = false; SchemaVersionNumber m_schemaVersionNumber; bool m_schemaVersionNumberHasBeenSet = false; Compatibility m_compatibility; bool m_compatibilityHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws