/** * 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 RegisterInstanceResult * request.

See Also:

AWS * API Reference

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

The registered instance's AWS OpsWorks Stacks ID.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The registered instance's AWS OpsWorks Stacks ID.

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

The registered instance's AWS OpsWorks Stacks ID.

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

The registered instance's AWS OpsWorks Stacks ID.

*/ inline void SetInstanceId(const char* value) { m_instanceId.assign(value); } /** *

The registered instance's AWS OpsWorks Stacks ID.

*/ inline RegisterInstanceResult& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The registered instance's AWS OpsWorks Stacks ID.

*/ inline RegisterInstanceResult& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The registered instance's AWS OpsWorks Stacks ID.

*/ inline RegisterInstanceResult& WithInstanceId(const char* value) { SetInstanceId(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 RegisterInstanceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RegisterInstanceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RegisterInstanceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_instanceId; Aws::String m_requestId; }; } // namespace Model } // namespace OpsWorks } // namespace Aws