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

The ARN of the pipe.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the pipe.

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

The ARN of the pipe.

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

The ARN of the pipe.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The ARN of the pipe.

*/ inline StopPipeResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the pipe.

*/ inline StopPipeResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the pipe.

*/ inline StopPipeResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The time the pipe was created.

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

The time the pipe was created.

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

The time the pipe was created.

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

The time the pipe was created.

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

The time the pipe was created.

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

The state the pipe is in.

*/ inline const PipeState& GetCurrentState() const{ return m_currentState; } /** *

The state the pipe is in.

*/ inline void SetCurrentState(const PipeState& value) { m_currentState = value; } /** *

The state the pipe is in.

*/ inline void SetCurrentState(PipeState&& value) { m_currentState = std::move(value); } /** *

The state the pipe is in.

*/ inline StopPipeResult& WithCurrentState(const PipeState& value) { SetCurrentState(value); return *this;} /** *

The state the pipe is in.

*/ inline StopPipeResult& WithCurrentState(PipeState&& value) { SetCurrentState(std::move(value)); return *this;} /** *

The state the pipe should be in.

*/ inline const RequestedPipeState& GetDesiredState() const{ return m_desiredState; } /** *

The state the pipe should be in.

*/ inline void SetDesiredState(const RequestedPipeState& value) { m_desiredState = value; } /** *

The state the pipe should be in.

*/ inline void SetDesiredState(RequestedPipeState&& value) { m_desiredState = std::move(value); } /** *

The state the pipe should be in.

*/ inline StopPipeResult& WithDesiredState(const RequestedPipeState& value) { SetDesiredState(value); return *this;} /** *

The state the pipe should be in.

*/ inline StopPipeResult& WithDesiredState(RequestedPipeState&& value) { SetDesiredState(std::move(value)); return *this;} /** *

When the pipe was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

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

When the pipe was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

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

When the pipe was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

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

When the pipe was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

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

When the pipe was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline StopPipeResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

The name of the pipe.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the pipe.

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

The name of the pipe.

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

The name of the pipe.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the pipe.

*/ inline StopPipeResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the pipe.

*/ inline StopPipeResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the pipe.

*/ inline StopPipeResult& WithName(const char* value) { SetName(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 StopPipeResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline StopPipeResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline StopPipeResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::Utils::DateTime m_creationTime; PipeState m_currentState; RequestedPipeState m_desiredState; Aws::Utils::DateTime m_lastModifiedTime; Aws::String m_name; Aws::String m_requestId; }; } // namespace Model } // namespace Pipes } // namespace Aws