/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudControlApi { namespace Model { class CreateResourceResult { public: AWS_CLOUDCONTROLAPI_API CreateResourceResult(); AWS_CLOUDCONTROLAPI_API CreateResourceResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDCONTROLAPI_API CreateResourceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Represents the current status of the resource creation request.

After * you have initiated a resource creation request, you can monitor the progress of * your request by calling GetResourceRequestStatus * using the RequestToken of the ProgressEvent returned * by CreateResource.

*/ inline const ProgressEvent& GetProgressEvent() const{ return m_progressEvent; } /** *

Represents the current status of the resource creation request.

After * you have initiated a resource creation request, you can monitor the progress of * your request by calling GetResourceRequestStatus * using the RequestToken of the ProgressEvent returned * by CreateResource.

*/ inline void SetProgressEvent(const ProgressEvent& value) { m_progressEvent = value; } /** *

Represents the current status of the resource creation request.

After * you have initiated a resource creation request, you can monitor the progress of * your request by calling GetResourceRequestStatus * using the RequestToken of the ProgressEvent returned * by CreateResource.

*/ inline void SetProgressEvent(ProgressEvent&& value) { m_progressEvent = std::move(value); } /** *

Represents the current status of the resource creation request.

After * you have initiated a resource creation request, you can monitor the progress of * your request by calling GetResourceRequestStatus * using the RequestToken of the ProgressEvent returned * by CreateResource.

*/ inline CreateResourceResult& WithProgressEvent(const ProgressEvent& value) { SetProgressEvent(value); return *this;} /** *

Represents the current status of the resource creation request.

After * you have initiated a resource creation request, you can monitor the progress of * your request by calling GetResourceRequestStatus * using the RequestToken of the ProgressEvent returned * by CreateResource.

*/ inline CreateResourceResult& WithProgressEvent(ProgressEvent&& value) { SetProgressEvent(std::move(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 CreateResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ProgressEvent m_progressEvent; Aws::String m_requestId; }; } // namespace Model } // namespace CloudControlApi } // namespace Aws