/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This structure contains information about the most recent run of a single
* canary.See Also:
AWS
* API Reference
The name of the canary.
*/ inline const Aws::String& GetCanaryName() const{ return m_canaryName; } /** *The name of the canary.
*/ inline bool CanaryNameHasBeenSet() const { return m_canaryNameHasBeenSet; } /** *The name of the canary.
*/ inline void SetCanaryName(const Aws::String& value) { m_canaryNameHasBeenSet = true; m_canaryName = value; } /** *The name of the canary.
*/ inline void SetCanaryName(Aws::String&& value) { m_canaryNameHasBeenSet = true; m_canaryName = std::move(value); } /** *The name of the canary.
*/ inline void SetCanaryName(const char* value) { m_canaryNameHasBeenSet = true; m_canaryName.assign(value); } /** *The name of the canary.
*/ inline CanaryLastRun& WithCanaryName(const Aws::String& value) { SetCanaryName(value); return *this;} /** *The name of the canary.
*/ inline CanaryLastRun& WithCanaryName(Aws::String&& value) { SetCanaryName(std::move(value)); return *this;} /** *The name of the canary.
*/ inline CanaryLastRun& WithCanaryName(const char* value) { SetCanaryName(value); return *this;} /** *The results from this canary's most recent run.
*/ inline const CanaryRun& GetLastRun() const{ return m_lastRun; } /** *The results from this canary's most recent run.
*/ inline bool LastRunHasBeenSet() const { return m_lastRunHasBeenSet; } /** *The results from this canary's most recent run.
*/ inline void SetLastRun(const CanaryRun& value) { m_lastRunHasBeenSet = true; m_lastRun = value; } /** *The results from this canary's most recent run.
*/ inline void SetLastRun(CanaryRun&& value) { m_lastRunHasBeenSet = true; m_lastRun = std::move(value); } /** *The results from this canary's most recent run.
*/ inline CanaryLastRun& WithLastRun(const CanaryRun& value) { SetLastRun(value); return *this;} /** *The results from this canary's most recent run.
*/ inline CanaryLastRun& WithLastRun(CanaryRun&& value) { SetLastRun(std::move(value)); return *this;} private: Aws::String m_canaryName; bool m_canaryNameHasBeenSet = false; CanaryRun m_lastRun; bool m_lastRunHasBeenSet = false; }; } // namespace Model } // namespace Synthetics } // namespace Aws