/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CloudDirectory { namespace Model { /** */ class UpgradePublishedSchemaRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API UpgradePublishedSchemaRequest(); // 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 "UpgradePublishedSchema"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; /** *

The ARN of the development schema with the changes used for the upgrade.

*/ inline const Aws::String& GetDevelopmentSchemaArn() const{ return m_developmentSchemaArn; } /** *

The ARN of the development schema with the changes used for the upgrade.

*/ inline bool DevelopmentSchemaArnHasBeenSet() const { return m_developmentSchemaArnHasBeenSet; } /** *

The ARN of the development schema with the changes used for the upgrade.

*/ inline void SetDevelopmentSchemaArn(const Aws::String& value) { m_developmentSchemaArnHasBeenSet = true; m_developmentSchemaArn = value; } /** *

The ARN of the development schema with the changes used for the upgrade.

*/ inline void SetDevelopmentSchemaArn(Aws::String&& value) { m_developmentSchemaArnHasBeenSet = true; m_developmentSchemaArn = std::move(value); } /** *

The ARN of the development schema with the changes used for the upgrade.

*/ inline void SetDevelopmentSchemaArn(const char* value) { m_developmentSchemaArnHasBeenSet = true; m_developmentSchemaArn.assign(value); } /** *

The ARN of the development schema with the changes used for the upgrade.

*/ inline UpgradePublishedSchemaRequest& WithDevelopmentSchemaArn(const Aws::String& value) { SetDevelopmentSchemaArn(value); return *this;} /** *

The ARN of the development schema with the changes used for the upgrade.

*/ inline UpgradePublishedSchemaRequest& WithDevelopmentSchemaArn(Aws::String&& value) { SetDevelopmentSchemaArn(std::move(value)); return *this;} /** *

The ARN of the development schema with the changes used for the upgrade.

*/ inline UpgradePublishedSchemaRequest& WithDevelopmentSchemaArn(const char* value) { SetDevelopmentSchemaArn(value); return *this;} /** *

The ARN of the published schema to be upgraded.

*/ inline const Aws::String& GetPublishedSchemaArn() const{ return m_publishedSchemaArn; } /** *

The ARN of the published schema to be upgraded.

*/ inline bool PublishedSchemaArnHasBeenSet() const { return m_publishedSchemaArnHasBeenSet; } /** *

The ARN of the published schema to be upgraded.

*/ inline void SetPublishedSchemaArn(const Aws::String& value) { m_publishedSchemaArnHasBeenSet = true; m_publishedSchemaArn = value; } /** *

The ARN of the published schema to be upgraded.

*/ inline void SetPublishedSchemaArn(Aws::String&& value) { m_publishedSchemaArnHasBeenSet = true; m_publishedSchemaArn = std::move(value); } /** *

The ARN of the published schema to be upgraded.

*/ inline void SetPublishedSchemaArn(const char* value) { m_publishedSchemaArnHasBeenSet = true; m_publishedSchemaArn.assign(value); } /** *

The ARN of the published schema to be upgraded.

*/ inline UpgradePublishedSchemaRequest& WithPublishedSchemaArn(const Aws::String& value) { SetPublishedSchemaArn(value); return *this;} /** *

The ARN of the published schema to be upgraded.

*/ inline UpgradePublishedSchemaRequest& WithPublishedSchemaArn(Aws::String&& value) { SetPublishedSchemaArn(std::move(value)); return *this;} /** *

The ARN of the published schema to be upgraded.

*/ inline UpgradePublishedSchemaRequest& WithPublishedSchemaArn(const char* value) { SetPublishedSchemaArn(value); return *this;} /** *

Identifies the minor version of the published schema that will be created. * This parameter is NOT optional.

*/ inline const Aws::String& GetMinorVersion() const{ return m_minorVersion; } /** *

Identifies the minor version of the published schema that will be created. * This parameter is NOT optional.

*/ inline bool MinorVersionHasBeenSet() const { return m_minorVersionHasBeenSet; } /** *

Identifies the minor version of the published schema that will be created. * This parameter is NOT optional.

*/ inline void SetMinorVersion(const Aws::String& value) { m_minorVersionHasBeenSet = true; m_minorVersion = value; } /** *

Identifies the minor version of the published schema that will be created. * This parameter is NOT optional.

*/ inline void SetMinorVersion(Aws::String&& value) { m_minorVersionHasBeenSet = true; m_minorVersion = std::move(value); } /** *

Identifies the minor version of the published schema that will be created. * This parameter is NOT optional.

*/ inline void SetMinorVersion(const char* value) { m_minorVersionHasBeenSet = true; m_minorVersion.assign(value); } /** *

Identifies the minor version of the published schema that will be created. * This parameter is NOT optional.

*/ inline UpgradePublishedSchemaRequest& WithMinorVersion(const Aws::String& value) { SetMinorVersion(value); return *this;} /** *

Identifies the minor version of the published schema that will be created. * This parameter is NOT optional.

*/ inline UpgradePublishedSchemaRequest& WithMinorVersion(Aws::String&& value) { SetMinorVersion(std::move(value)); return *this;} /** *

Identifies the minor version of the published schema that will be created. * This parameter is NOT optional.

*/ inline UpgradePublishedSchemaRequest& WithMinorVersion(const char* value) { SetMinorVersion(value); return *this;} /** *

Used for testing whether the Development schema provided is backwards * compatible, or not, with the publish schema provided by the user to be upgraded. * If schema compatibility fails, an exception would be thrown else the call would * succeed. This parameter is optional and defaults to false.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Used for testing whether the Development schema provided is backwards * compatible, or not, with the publish schema provided by the user to be upgraded. * If schema compatibility fails, an exception would be thrown else the call would * succeed. This parameter is optional and defaults to false.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Used for testing whether the Development schema provided is backwards * compatible, or not, with the publish schema provided by the user to be upgraded. * If schema compatibility fails, an exception would be thrown else the call would * succeed. This parameter is optional and defaults to false.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Used for testing whether the Development schema provided is backwards * compatible, or not, with the publish schema provided by the user to be upgraded. * If schema compatibility fails, an exception would be thrown else the call would * succeed. This parameter is optional and defaults to false.

*/ inline UpgradePublishedSchemaRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_developmentSchemaArn; bool m_developmentSchemaArnHasBeenSet = false; Aws::String m_publishedSchemaArn; bool m_publishedSchemaArnHasBeenSet = false; Aws::String m_minorVersion; bool m_minorVersionHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws