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

Information about whether a file is binary or textual in a merge or pull * request operation.

See Also:

AWS * API Reference

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

The binary or non-binary status of file in the source of a merge or pull * request.

*/ inline bool GetSource() const{ return m_source; } /** *

The binary or non-binary status of file in the source of a merge or pull * request.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The binary or non-binary status of file in the source of a merge or pull * request.

*/ inline void SetSource(bool value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The binary or non-binary status of file in the source of a merge or pull * request.

*/ inline IsBinaryFile& WithSource(bool value) { SetSource(value); return *this;} /** *

The binary or non-binary status of a file in the destination of a merge or * pull request.

*/ inline bool GetDestination() const{ return m_destination; } /** *

The binary or non-binary status of a file in the destination of a merge or * pull request.

*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *

The binary or non-binary status of a file in the destination of a merge or * pull request.

*/ inline void SetDestination(bool value) { m_destinationHasBeenSet = true; m_destination = value; } /** *

The binary or non-binary status of a file in the destination of a merge or * pull request.

*/ inline IsBinaryFile& WithDestination(bool value) { SetDestination(value); return *this;} /** *

The binary or non-binary status of a file in the base of a merge or pull * request.

*/ inline bool GetBase() const{ return m_base; } /** *

The binary or non-binary status of a file in the base of a merge or pull * request.

*/ inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; } /** *

The binary or non-binary status of a file in the base of a merge or pull * request.

*/ inline void SetBase(bool value) { m_baseHasBeenSet = true; m_base = value; } /** *

The binary or non-binary status of a file in the base of a merge or pull * request.

*/ inline IsBinaryFile& WithBase(bool value) { SetBase(value); return *this;} private: bool m_source; bool m_sourceHasBeenSet = false; bool m_destination; bool m_destinationHasBeenSet = false; bool m_base; bool m_baseHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws