/** * 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 CreateAliasResult { public: AWS_DIRECTORYSERVICE_API CreateAliasResult(); AWS_DIRECTORYSERVICE_API CreateAliasResult(const Aws::AmazonWebServiceResult& result); AWS_DIRECTORYSERVICE_API 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;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateAliasResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateAliasResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateAliasResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_directoryId; Aws::String m_alias; Aws::String m_requestId; }; } // namespace Model } // namespace DirectoryService } // namespace Aws