/** * 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 OpsWorks { namespace Model { /** *

Contains the response to a GetHostnameSuggestion * request.

See Also:

AWS * API Reference

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

The layer ID.

*/ inline const Aws::String& GetLayerId() const{ return m_layerId; } /** *

The layer ID.

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

The layer ID.

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

The layer ID.

*/ inline void SetLayerId(const char* value) { m_layerId.assign(value); } /** *

The layer ID.

*/ inline GetHostnameSuggestionResult& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;} /** *

The layer ID.

*/ inline GetHostnameSuggestionResult& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;} /** *

The layer ID.

*/ inline GetHostnameSuggestionResult& WithLayerId(const char* value) { SetLayerId(value); return *this;} /** *

The generated host name.

*/ inline const Aws::String& GetHostname() const{ return m_hostname; } /** *

The generated host name.

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

The generated host name.

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

The generated host name.

*/ inline void SetHostname(const char* value) { m_hostname.assign(value); } /** *

The generated host name.

*/ inline GetHostnameSuggestionResult& WithHostname(const Aws::String& value) { SetHostname(value); return *this;} /** *

The generated host name.

*/ inline GetHostnameSuggestionResult& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;} /** *

The generated host name.

*/ inline GetHostnameSuggestionResult& WithHostname(const char* value) { SetHostname(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 GetHostnameSuggestionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetHostnameSuggestionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetHostnameSuggestionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_layerId; Aws::String m_hostname; Aws::String m_requestId; }; } // namespace Model } // namespace OpsWorks } // namespace Aws