/** * 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 ApplySchemaRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API ApplySchemaRequest(); // 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 "ApplySchema"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Published schema Amazon Resource Name (ARN) that needs to be copied. For more * information, see arns.

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

Published schema Amazon Resource Name (ARN) that needs to be copied. For more * information, see arns.

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

Published schema Amazon Resource Name (ARN) that needs to be copied. For more * information, see arns.

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

Published schema Amazon Resource Name (ARN) that needs to be copied. For more * information, see arns.

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

Published schema Amazon Resource Name (ARN) that needs to be copied. For more * information, see arns.

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

Published schema Amazon Resource Name (ARN) that needs to be copied. For more * information, see arns.

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

Published schema Amazon Resource Name (ARN) that needs to be copied. For more * information, see arns.

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

Published schema Amazon Resource Name (ARN) that needs to be copied. For more * information, see arns.

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

The Amazon Resource Name (ARN) that is associated with the Directory * into which the schema is copied. For more information, see arns.

*/ inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * into which the schema is copied. For more information, see arns.

*/ inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * into which the schema is copied. For more information, see arns.

*/ inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * into which the schema is copied. For more information, see arns.

*/ inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * into which the schema is copied. For more information, see arns.

*/ inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * into which the schema is copied. For more information, see arns.

*/ inline ApplySchemaRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that is associated with the Directory * into which the schema is copied. For more information, see arns.

*/ inline ApplySchemaRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that is associated with the Directory * into which the schema is copied. For more information, see arns.

*/ inline ApplySchemaRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;} private: Aws::String m_publishedSchemaArn; bool m_publishedSchemaArnHasBeenSet = false; Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws