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

Output of a get answer call.

See Also:

AWS * API Reference

*/ class GetAnswerResult { public: AWS_WELLARCHITECTED_API GetAnswerResult(); AWS_WELLARCHITECTED_API GetAnswerResult(const Aws::AmazonWebServiceResult& result); AWS_WELLARCHITECTED_API GetAnswerResult& operator=(const Aws::AmazonWebServiceResult& result); inline const Aws::String& GetWorkloadId() const{ return m_workloadId; } inline void SetWorkloadId(const Aws::String& value) { m_workloadId = value; } inline void SetWorkloadId(Aws::String&& value) { m_workloadId = std::move(value); } inline void SetWorkloadId(const char* value) { m_workloadId.assign(value); } inline GetAnswerResult& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;} inline GetAnswerResult& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;} inline GetAnswerResult& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;} inline int GetMilestoneNumber() const{ return m_milestoneNumber; } inline void SetMilestoneNumber(int value) { m_milestoneNumber = value; } inline GetAnswerResult& WithMilestoneNumber(int value) { SetMilestoneNumber(value); return *this;} inline const Aws::String& GetLensAlias() const{ return m_lensAlias; } inline void SetLensAlias(const Aws::String& value) { m_lensAlias = value; } inline void SetLensAlias(Aws::String&& value) { m_lensAlias = std::move(value); } inline void SetLensAlias(const char* value) { m_lensAlias.assign(value); } inline GetAnswerResult& WithLensAlias(const Aws::String& value) { SetLensAlias(value); return *this;} inline GetAnswerResult& WithLensAlias(Aws::String&& value) { SetLensAlias(std::move(value)); return *this;} inline GetAnswerResult& WithLensAlias(const char* value) { SetLensAlias(value); return *this;} /** *

The ARN for the lens.

*/ inline const Aws::String& GetLensArn() const{ return m_lensArn; } /** *

The ARN for the lens.

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

The ARN for the lens.

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

The ARN for the lens.

*/ inline void SetLensArn(const char* value) { m_lensArn.assign(value); } /** *

The ARN for the lens.

*/ inline GetAnswerResult& WithLensArn(const Aws::String& value) { SetLensArn(value); return *this;} /** *

The ARN for the lens.

*/ inline GetAnswerResult& WithLensArn(Aws::String&& value) { SetLensArn(std::move(value)); return *this;} /** *

The ARN for the lens.

*/ inline GetAnswerResult& WithLensArn(const char* value) { SetLensArn(value); return *this;} inline const Answer& GetAnswer() const{ return m_answer; } inline void SetAnswer(const Answer& value) { m_answer = value; } inline void SetAnswer(Answer&& value) { m_answer = std::move(value); } inline GetAnswerResult& WithAnswer(const Answer& value) { SetAnswer(value); return *this;} inline GetAnswerResult& WithAnswer(Answer&& value) { SetAnswer(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 GetAnswerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetAnswerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetAnswerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_workloadId; int m_milestoneNumber; Aws::String m_lensAlias; Aws::String m_lensArn; Answer m_answer; Aws::String m_requestId; }; } // namespace Model } // namespace WellArchitected } // namespace Aws