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

The ARN of the API destination that was created by the request.

*/ inline const Aws::String& GetApiDestinationArn() const{ return m_apiDestinationArn; } /** *

The ARN of the API destination that was created by the request.

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

The ARN of the API destination that was created by the request.

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

The ARN of the API destination that was created by the request.

*/ inline void SetApiDestinationArn(const char* value) { m_apiDestinationArn.assign(value); } /** *

The ARN of the API destination that was created by the request.

*/ inline CreateApiDestinationResult& WithApiDestinationArn(const Aws::String& value) { SetApiDestinationArn(value); return *this;} /** *

The ARN of the API destination that was created by the request.

*/ inline CreateApiDestinationResult& WithApiDestinationArn(Aws::String&& value) { SetApiDestinationArn(std::move(value)); return *this;} /** *

The ARN of the API destination that was created by the request.

*/ inline CreateApiDestinationResult& WithApiDestinationArn(const char* value) { SetApiDestinationArn(value); return *this;} /** *

The state of the API destination that was created by the request.

*/ inline const ApiDestinationState& GetApiDestinationState() const{ return m_apiDestinationState; } /** *

The state of the API destination that was created by the request.

*/ inline void SetApiDestinationState(const ApiDestinationState& value) { m_apiDestinationState = value; } /** *

The state of the API destination that was created by the request.

*/ inline void SetApiDestinationState(ApiDestinationState&& value) { m_apiDestinationState = std::move(value); } /** *

The state of the API destination that was created by the request.

*/ inline CreateApiDestinationResult& WithApiDestinationState(const ApiDestinationState& value) { SetApiDestinationState(value); return *this;} /** *

The state of the API destination that was created by the request.

*/ inline CreateApiDestinationResult& WithApiDestinationState(ApiDestinationState&& value) { SetApiDestinationState(std::move(value)); return *this;} /** *

A time stamp indicating the time that the API destination was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

A time stamp indicating the time that the API destination was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *

A time stamp indicating the time that the API destination was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } /** *

A time stamp indicating the time that the API destination was created.

*/ inline CreateApiDestinationResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

A time stamp indicating the time that the API destination was created.

*/ inline CreateApiDestinationResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

A time stamp indicating the time that the API destination was last * modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

A time stamp indicating the time that the API destination was last * modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } /** *

A time stamp indicating the time that the API destination was last * modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } /** *

A time stamp indicating the time that the API destination was last * modified.

*/ inline CreateApiDestinationResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

A time stamp indicating the time that the API destination was last * modified.

*/ inline CreateApiDestinationResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(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 CreateApiDestinationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateApiDestinationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateApiDestinationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_apiDestinationArn; ApiDestinationState m_apiDestinationState; Aws::Utils::DateTime m_creationTime; Aws::Utils::DateTime m_lastModifiedTime; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws