/** * 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 AWS_CODECOMMIT_API GetPullRequestOverrideStateResult { public: GetPullRequestOverrideStateResult(); GetPullRequestOverrideStateResult(const Aws::AmazonWebServiceResult& result); 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;} private: bool m_overridden; Aws::String m_overrider; }; } // namespace Model } // namespace CodeCommit } // namespace Aws