/** * 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 DirectoryService { namespace Model { /** */ class StartSchemaExtensionRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API StartSchemaExtensionRequest(); // 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 "StartSchemaExtension"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the directory for which the schema extension will be * applied to.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

The identifier of the directory for which the schema extension will be * applied to.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

The identifier of the directory for which the schema extension will be * applied to.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

The identifier of the directory for which the schema extension will be * applied to.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

The identifier of the directory for which the schema extension will be * applied to.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

The identifier of the directory for which the schema extension will be * applied to.

*/ inline StartSchemaExtensionRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

The identifier of the directory for which the schema extension will be * applied to.

*/ inline StartSchemaExtensionRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

The identifier of the directory for which the schema extension will be * applied to.

*/ inline StartSchemaExtensionRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

If true, creates a snapshot of the directory before applying the schema * extension.

*/ inline bool GetCreateSnapshotBeforeSchemaExtension() const{ return m_createSnapshotBeforeSchemaExtension; } /** *

If true, creates a snapshot of the directory before applying the schema * extension.

*/ inline bool CreateSnapshotBeforeSchemaExtensionHasBeenSet() const { return m_createSnapshotBeforeSchemaExtensionHasBeenSet; } /** *

If true, creates a snapshot of the directory before applying the schema * extension.

*/ inline void SetCreateSnapshotBeforeSchemaExtension(bool value) { m_createSnapshotBeforeSchemaExtensionHasBeenSet = true; m_createSnapshotBeforeSchemaExtension = value; } /** *

If true, creates a snapshot of the directory before applying the schema * extension.

*/ inline StartSchemaExtensionRequest& WithCreateSnapshotBeforeSchemaExtension(bool value) { SetCreateSnapshotBeforeSchemaExtension(value); return *this;} /** *

The LDIF file represented as a string. To construct the LdifContent string, * precede each line as it would be formatted in an ldif file with \n. See the * example request below for more details. The file size can be no larger than * 1MB.

*/ inline const Aws::String& GetLdifContent() const{ return m_ldifContent; } /** *

The LDIF file represented as a string. To construct the LdifContent string, * precede each line as it would be formatted in an ldif file with \n. See the * example request below for more details. The file size can be no larger than * 1MB.

*/ inline bool LdifContentHasBeenSet() const { return m_ldifContentHasBeenSet; } /** *

The LDIF file represented as a string. To construct the LdifContent string, * precede each line as it would be formatted in an ldif file with \n. See the * example request below for more details. The file size can be no larger than * 1MB.

*/ inline void SetLdifContent(const Aws::String& value) { m_ldifContentHasBeenSet = true; m_ldifContent = value; } /** *

The LDIF file represented as a string. To construct the LdifContent string, * precede each line as it would be formatted in an ldif file with \n. See the * example request below for more details. The file size can be no larger than * 1MB.

*/ inline void SetLdifContent(Aws::String&& value) { m_ldifContentHasBeenSet = true; m_ldifContent = std::move(value); } /** *

The LDIF file represented as a string. To construct the LdifContent string, * precede each line as it would be formatted in an ldif file with \n. See the * example request below for more details. The file size can be no larger than * 1MB.

*/ inline void SetLdifContent(const char* value) { m_ldifContentHasBeenSet = true; m_ldifContent.assign(value); } /** *

The LDIF file represented as a string. To construct the LdifContent string, * precede each line as it would be formatted in an ldif file with \n. See the * example request below for more details. The file size can be no larger than * 1MB.

*/ inline StartSchemaExtensionRequest& WithLdifContent(const Aws::String& value) { SetLdifContent(value); return *this;} /** *

The LDIF file represented as a string. To construct the LdifContent string, * precede each line as it would be formatted in an ldif file with \n. See the * example request below for more details. The file size can be no larger than * 1MB.

*/ inline StartSchemaExtensionRequest& WithLdifContent(Aws::String&& value) { SetLdifContent(std::move(value)); return *this;} /** *

The LDIF file represented as a string. To construct the LdifContent string, * precede each line as it would be formatted in an ldif file with \n. See the * example request below for more details. The file size can be no larger than * 1MB.

*/ inline StartSchemaExtensionRequest& WithLdifContent(const char* value) { SetLdifContent(value); return *this;} /** *

A description of the schema extension.

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

A description of the schema extension.

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

A description of the schema extension.

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

A description of the schema extension.

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

A description of the schema extension.

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

A description of the schema extension.

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

A description of the schema extension.

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

A description of the schema extension.

*/ inline StartSchemaExtensionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; bool m_createSnapshotBeforeSchemaExtension; bool m_createSnapshotBeforeSchemaExtensionHasBeenSet = false; Aws::String m_ldifContent; bool m_ldifContentHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws