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

A Boolean value that indicates whether a pull request has had its rules set * aside (TRUE) or whether all approval rules still apply (FALSE).

*/ inline bool GetOverridden() const{ return m_overridden; } /** *

A Boolean value that indicates whether a pull request has had its rules set * aside (TRUE) or whether all approval rules still apply (FALSE).

*/ inline void SetOverridden(bool value) { m_overridden = value; } /** *

A Boolean value that indicates whether a pull request has had its rules set * aside (TRUE) or whether all approval rules still apply (FALSE).

*/ inline GetPullRequestOverrideStateResult& WithOverridden(bool value) { SetOverridden(value); return *this;} /** *

The Amazon Resource Name (ARN) of the user or identity that overrode the * rules and their requirements for the pull request.

*/ inline const Aws::String& GetOverrider() const{ return m_overrider; } /** *

The Amazon Resource Name (ARN) of the user or identity that overrode the * rules and their requirements for the pull request.

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

The Amazon Resource Name (ARN) of the user or identity that overrode the * rules and their requirements for the pull request.

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

The Amazon Resource Name (ARN) of the user or identity that overrode the * rules and their requirements for the pull request.

*/ inline void SetOverrider(const char* value) { m_overrider.assign(value); } /** *

The Amazon Resource Name (ARN) of the user or identity that overrode the * rules and their requirements for the pull request.

*/ inline GetPullRequestOverrideStateResult& WithOverrider(const Aws::String& value) { SetOverrider(value); return *this;} /** *

The Amazon Resource Name (ARN) of the user or identity that overrode the * rules and their requirements for the pull request.

*/ inline GetPullRequestOverrideStateResult& WithOverrider(Aws::String&& value) { SetOverrider(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the user or identity that overrode the * rules and their requirements for the pull request.

*/ inline GetPullRequestOverrideStateResult& WithOverrider(const char* value) { SetOverrider(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 GetPullRequestOverrideStateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetPullRequestOverrideStateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetPullRequestOverrideStateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: bool m_overridden; Aws::String m_overrider; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws