/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This structure contains the details about one run of one
* canary.See Also:
AWS
* API Reference
A unique ID that identifies this canary run.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *A unique ID that identifies this canary run.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *A unique ID that identifies this canary run.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *A unique ID that identifies this canary run.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *A unique ID that identifies this canary run.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *A unique ID that identifies this canary run.
*/ inline CanaryRun& WithId(const Aws::String& value) { SetId(value); return *this;} /** *A unique ID that identifies this canary run.
*/ inline CanaryRun& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *A unique ID that identifies this canary run.
*/ inline CanaryRun& WithId(const char* value) { SetId(value); return *this;} /** *The name of the canary.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the canary.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the canary.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the canary.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the canary.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the canary.
*/ inline CanaryRun& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the canary.
*/ inline CanaryRun& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the canary.
*/ inline CanaryRun& WithName(const char* value) { SetName(value); return *this;} /** *The status of this run.
*/ inline const CanaryRunStatus& GetStatus() const{ return m_status; } /** *The status of this run.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of this run.
*/ inline void SetStatus(const CanaryRunStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of this run.
*/ inline void SetStatus(CanaryRunStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of this run.
*/ inline CanaryRun& WithStatus(const CanaryRunStatus& value) { SetStatus(value); return *this;} /** *The status of this run.
*/ inline CanaryRun& WithStatus(CanaryRunStatus&& value) { SetStatus(std::move(value)); return *this;} /** *A structure that contains the start and end times of this run.
*/ inline const CanaryRunTimeline& GetTimeline() const{ return m_timeline; } /** *A structure that contains the start and end times of this run.
*/ inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; } /** *A structure that contains the start and end times of this run.
*/ inline void SetTimeline(const CanaryRunTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; } /** *A structure that contains the start and end times of this run.
*/ inline void SetTimeline(CanaryRunTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); } /** *A structure that contains the start and end times of this run.
*/ inline CanaryRun& WithTimeline(const CanaryRunTimeline& value) { SetTimeline(value); return *this;} /** *A structure that contains the start and end times of this run.
*/ inline CanaryRun& WithTimeline(CanaryRunTimeline&& value) { SetTimeline(std::move(value)); return *this;} /** *The location where the canary stored artifacts from the run. Artifacts * include the log file, screenshots, and HAR files.
*/ inline const Aws::String& GetArtifactS3Location() const{ return m_artifactS3Location; } /** *The location where the canary stored artifacts from the run. Artifacts * include the log file, screenshots, and HAR files.
*/ inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; } /** *The location where the canary stored artifacts from the run. Artifacts * include the log file, screenshots, and HAR files.
*/ inline void SetArtifactS3Location(const Aws::String& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = value; } /** *The location where the canary stored artifacts from the run. Artifacts * include the log file, screenshots, and HAR files.
*/ inline void SetArtifactS3Location(Aws::String&& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = std::move(value); } /** *The location where the canary stored artifacts from the run. Artifacts * include the log file, screenshots, and HAR files.
*/ inline void SetArtifactS3Location(const char* value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location.assign(value); } /** *The location where the canary stored artifacts from the run. Artifacts * include the log file, screenshots, and HAR files.
*/ inline CanaryRun& WithArtifactS3Location(const Aws::String& value) { SetArtifactS3Location(value); return *this;} /** *The location where the canary stored artifacts from the run. Artifacts * include the log file, screenshots, and HAR files.
*/ inline CanaryRun& WithArtifactS3Location(Aws::String&& value) { SetArtifactS3Location(std::move(value)); return *this;} /** *The location where the canary stored artifacts from the run. Artifacts * include the log file, screenshots, and HAR files.
*/ inline CanaryRun& WithArtifactS3Location(const char* value) { SetArtifactS3Location(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; CanaryRunStatus m_status; bool m_statusHasBeenSet = false; CanaryRunTimeline m_timeline; bool m_timelineHasBeenSet = false; Aws::String m_artifactS3Location; bool m_artifactS3LocationHasBeenSet = false; }; } // namespace Model } // namespace Synthetics } // namespace Aws