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

A structure that contains input information for a canary run.

See * Also:

AWS * API Reference

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

How long the canary is allowed to run before it must stop. If you omit this * field, the frequency of the canary is used as this value, up to a maximum of 14 * minutes.

*/ inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; } /** *

How long the canary is allowed to run before it must stop. If you omit this * field, the frequency of the canary is used as this value, up to a maximum of 14 * minutes.

*/ inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; } /** *

How long the canary is allowed to run before it must stop. If you omit this * field, the frequency of the canary is used as this value, up to a maximum of 14 * minutes.

*/ inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; } /** *

How long the canary is allowed to run before it must stop. If you omit this * field, the frequency of the canary is used as this value, up to a maximum of 14 * minutes.

*/ inline CanaryRunConfigInput& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;} /** *

The maximum amount of memory available to the canary while it is running, in * MB. The value you specify must be a multiple of 64.

*/ inline int GetMemoryInMB() const{ return m_memoryInMB; } /** *

The maximum amount of memory available to the canary while it is running, in * MB. The value you specify must be a multiple of 64.

*/ inline bool MemoryInMBHasBeenSet() const { return m_memoryInMBHasBeenSet; } /** *

The maximum amount of memory available to the canary while it is running, in * MB. The value you specify must be a multiple of 64.

*/ inline void SetMemoryInMB(int value) { m_memoryInMBHasBeenSet = true; m_memoryInMB = value; } /** *

The maximum amount of memory available to the canary while it is running, in * MB. The value you specify must be a multiple of 64.

*/ inline CanaryRunConfigInput& WithMemoryInMB(int value) { SetMemoryInMB(value); return *this;} private: int m_timeoutInSeconds; bool m_timeoutInSecondsHasBeenSet; int m_memoryInMB; bool m_memoryInMBHasBeenSet; }; } // namespace Model } // namespace Synthetics } // namespace Aws