/** * 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 { /** *

Contains the inputs for the CreateAlias operation.

See * Also:

AWS * API Reference

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

The identifier of the directory for which to create the alias.

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

The identifier of the directory for which to create the alias.

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

The identifier of the directory for which to create the alias.

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

The identifier of the directory for which to create the alias.

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

The identifier of the directory for which to create the alias.

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

The identifier of the directory for which to create the alias.

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

The identifier of the directory for which to create the alias.

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

The identifier of the directory for which to create the alias.

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

The requested alias.

The alias must be unique amongst all aliases in * AWS. This operation throws an EntityAlreadyExistsException error if * the alias already exists.

*/ inline const Aws::String& GetAlias() const{ return m_alias; } /** *

The requested alias.

The alias must be unique amongst all aliases in * AWS. This operation throws an EntityAlreadyExistsException error if * the alias already exists.

*/ inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } /** *

The requested alias.

The alias must be unique amongst all aliases in * AWS. This operation throws an EntityAlreadyExistsException error if * the alias already exists.

*/ inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } /** *

The requested alias.

The alias must be unique amongst all aliases in * AWS. This operation throws an EntityAlreadyExistsException error if * the alias already exists.

*/ inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } /** *

The requested alias.

The alias must be unique amongst all aliases in * AWS. This operation throws an EntityAlreadyExistsException error if * the alias already exists.

*/ inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } /** *

The requested alias.

The alias must be unique amongst all aliases in * AWS. This operation throws an EntityAlreadyExistsException error if * the alias already exists.

*/ inline CreateAliasRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} /** *

The requested alias.

The alias must be unique amongst all aliases in * AWS. This operation throws an EntityAlreadyExistsException error if * the alias already exists.

*/ inline CreateAliasRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} /** *

The requested alias.

The alias must be unique amongst all aliases in * AWS. This operation throws an EntityAlreadyExistsException error if * the alias already exists.

*/ inline CreateAliasRequest& WithAlias(const char* value) { SetAlias(value); return *this;} private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet; Aws::String m_alias; bool m_aliasHasBeenSet; }; } // namespace Model } // namespace DirectoryService } // namespace Aws