/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DirectoryService { namespace Model { /** *

Contains the results of the CreateAlias operation.

See * Also:

AWS * API Reference

*/ class AWS_DIRECTORYSERVICE_API CreateAliasResult { public: CreateAliasResult(); CreateAliasResult(const Aws::AmazonWebServiceResult& result); CreateAliasResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier of the directory.

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

The identifier of the directory.

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

The identifier of the directory.

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

The identifier of the directory.

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

The identifier of the directory.

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

The identifier of the directory.

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

The identifier of the directory.

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

The alias for the directory.

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

The alias for the directory.

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

The alias for the directory.

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

The alias for the directory.

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

The alias for the directory.

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

The alias for the directory.

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

The alias for the directory.

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