/** * 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 the size of files in a merge or pull request.

See * Also:

AWS * API Reference

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

The size of a file in the source of a merge or pull request.

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

The size of a file in the source of a merge or pull request.

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

The size of a file in the source of a merge or pull request.

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

The size of a file in the source of a merge or pull request.

*/ inline FileSizes& WithSource(long long value) { SetSource(value); return *this;} /** *

The size of a file in the destination of a merge or pull request.

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

The size of a file in the destination of a merge or pull request.

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

The size of a file in the destination of a merge or pull request.

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

The size of a file in the destination of a merge or pull request.

*/ inline FileSizes& WithDestination(long long value) { SetDestination(value); return *this;} /** *

The size of a file in the base of a merge or pull request.

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

The size of a file in the base of a merge or pull request.

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

The size of a file in the base of a merge or pull request.

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

The size of a file in the base of a merge or pull request.

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