/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { /** *

Returns information about a specific approval on a pull * request.

See Also:

AWS * API Reference

*/ class Approval { public: AWS_CODECOMMIT_API Approval(); AWS_CODECOMMIT_API Approval(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Approval& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the user.

*/ inline const Aws::String& GetUserArn() const{ return m_userArn; } /** *

The Amazon Resource Name (ARN) of the user.

*/ inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the user.

*/ inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; } /** *

The Amazon Resource Name (ARN) of the user.

*/ inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the user.

*/ inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the user.

*/ inline Approval& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the user.

*/ inline Approval& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the user.

*/ inline Approval& WithUserArn(const char* value) { SetUserArn(value); return *this;} /** *

The state of the approval, APPROVE or REVOKE. REVOKE states are not * stored.

*/ inline const ApprovalState& GetApprovalState() const{ return m_approvalState; } /** *

The state of the approval, APPROVE or REVOKE. REVOKE states are not * stored.

*/ inline bool ApprovalStateHasBeenSet() const { return m_approvalStateHasBeenSet; } /** *

The state of the approval, APPROVE or REVOKE. REVOKE states are not * stored.

*/ inline void SetApprovalState(const ApprovalState& value) { m_approvalStateHasBeenSet = true; m_approvalState = value; } /** *

The state of the approval, APPROVE or REVOKE. REVOKE states are not * stored.

*/ inline void SetApprovalState(ApprovalState&& value) { m_approvalStateHasBeenSet = true; m_approvalState = std::move(value); } /** *

The state of the approval, APPROVE or REVOKE. REVOKE states are not * stored.

*/ inline Approval& WithApprovalState(const ApprovalState& value) { SetApprovalState(value); return *this;} /** *

The state of the approval, APPROVE or REVOKE. REVOKE states are not * stored.

*/ inline Approval& WithApprovalState(ApprovalState&& value) { SetApprovalState(std::move(value)); return *this;} private: Aws::String m_userArn; bool m_userArnHasBeenSet = false; ApprovalState m_approvalState; bool m_approvalStateHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws