This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-synthetics/include/aws/synthetics/model/CanaryLastRun.h

125 lines
3.4 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/synthetics/Synthetics_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/synthetics/model/CanaryRun.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Synthetics
{
namespace Model
{
/**
* <p>This structure contains information about the most recent run of a single
* canary.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/CanaryLastRun">AWS
* API Reference</a></p>
*/
class AWS_SYNTHETICS_API CanaryLastRun
{
public:
CanaryLastRun();
CanaryLastRun(Aws::Utils::Json::JsonView jsonValue);
CanaryLastRun& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the canary.</p>
*/
inline const Aws::String& GetCanaryName() const{ return m_canaryName; }
/**
* <p>The name of the canary.</p>
*/
inline bool CanaryNameHasBeenSet() const { return m_canaryNameHasBeenSet; }
/**
* <p>The name of the canary.</p>
*/
inline void SetCanaryName(const Aws::String& value) { m_canaryNameHasBeenSet = true; m_canaryName = value; }
/**
* <p>The name of the canary.</p>
*/
inline void SetCanaryName(Aws::String&& value) { m_canaryNameHasBeenSet = true; m_canaryName = std::move(value); }
/**
* <p>The name of the canary.</p>
*/
inline void SetCanaryName(const char* value) { m_canaryNameHasBeenSet = true; m_canaryName.assign(value); }
/**
* <p>The name of the canary.</p>
*/
inline CanaryLastRun& WithCanaryName(const Aws::String& value) { SetCanaryName(value); return *this;}
/**
* <p>The name of the canary.</p>
*/
inline CanaryLastRun& WithCanaryName(Aws::String&& value) { SetCanaryName(std::move(value)); return *this;}
/**
* <p>The name of the canary.</p>
*/
inline CanaryLastRun& WithCanaryName(const char* value) { SetCanaryName(value); return *this;}
/**
* <p>The results from this canary's most recent run.</p>
*/
inline const CanaryRun& GetLastRun() const{ return m_lastRun; }
/**
* <p>The results from this canary's most recent run.</p>
*/
inline bool LastRunHasBeenSet() const { return m_lastRunHasBeenSet; }
/**
* <p>The results from this canary's most recent run.</p>
*/
inline void SetLastRun(const CanaryRun& value) { m_lastRunHasBeenSet = true; m_lastRun = value; }
/**
* <p>The results from this canary's most recent run.</p>
*/
inline void SetLastRun(CanaryRun&& value) { m_lastRunHasBeenSet = true; m_lastRun = std::move(value); }
/**
* <p>The results from this canary's most recent run.</p>
*/
inline CanaryLastRun& WithLastRun(const CanaryRun& value) { SetLastRun(value); return *this;}
/**
* <p>The results from this canary's most recent run.</p>
*/
inline CanaryLastRun& WithLastRun(CanaryRun&& value) { SetLastRun(std::move(value)); return *this;}
private:
Aws::String m_canaryName;
bool m_canaryNameHasBeenSet;
CanaryRun m_lastRun;
bool m_lastRunHasBeenSet;
};
} // namespace Model
} // namespace Synthetics
} // namespace Aws