/** * 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 LicenseManager { namespace Model { /** *

Details about a borrow configuration.

See Also:

AWS * API Reference

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

Indicates whether early check-ins are allowed.

*/ inline bool GetAllowEarlyCheckIn() const{ return m_allowEarlyCheckIn; } /** *

Indicates whether early check-ins are allowed.

*/ inline bool AllowEarlyCheckInHasBeenSet() const { return m_allowEarlyCheckInHasBeenSet; } /** *

Indicates whether early check-ins are allowed.

*/ inline void SetAllowEarlyCheckIn(bool value) { m_allowEarlyCheckInHasBeenSet = true; m_allowEarlyCheckIn = value; } /** *

Indicates whether early check-ins are allowed.

*/ inline BorrowConfiguration& WithAllowEarlyCheckIn(bool value) { SetAllowEarlyCheckIn(value); return *this;} /** *

Maximum time for the borrow configuration, in minutes.

*/ inline int GetMaxTimeToLiveInMinutes() const{ return m_maxTimeToLiveInMinutes; } /** *

Maximum time for the borrow configuration, in minutes.

*/ inline bool MaxTimeToLiveInMinutesHasBeenSet() const { return m_maxTimeToLiveInMinutesHasBeenSet; } /** *

Maximum time for the borrow configuration, in minutes.

*/ inline void SetMaxTimeToLiveInMinutes(int value) { m_maxTimeToLiveInMinutesHasBeenSet = true; m_maxTimeToLiveInMinutes = value; } /** *

Maximum time for the borrow configuration, in minutes.

*/ inline BorrowConfiguration& WithMaxTimeToLiveInMinutes(int value) { SetMaxTimeToLiveInMinutes(value); return *this;} private: bool m_allowEarlyCheckIn; bool m_allowEarlyCheckInHasBeenSet = false; int m_maxTimeToLiveInMinutes; bool m_maxTimeToLiveInMinutesHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws