AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CanaryRun.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/synthetics/model/CanaryRunStatus.h>
10#include <aws/synthetics/model/CanaryRunTimeline.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Synthetics
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SYNTHETICS_API CanaryRun();
38 AWS_SYNTHETICS_API CanaryRun(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SYNTHETICS_API CanaryRun& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline CanaryRun& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline CanaryRun& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline CanaryRun& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline CanaryRun& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline CanaryRun& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline CanaryRun& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const CanaryRunStatus& GetStatus() const{ return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(const CanaryRunStatus& value) { m_statusHasBeenSet = true; m_status = value; }
78 inline void SetStatus(CanaryRunStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
79 inline CanaryRun& WithStatus(const CanaryRunStatus& value) { SetStatus(value); return *this;}
80 inline CanaryRun& WithStatus(CanaryRunStatus&& value) { SetStatus(std::move(value)); return *this;}
82
84
87 inline const CanaryRunTimeline& GetTimeline() const{ return m_timeline; }
88 inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
89 inline void SetTimeline(const CanaryRunTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
90 inline void SetTimeline(CanaryRunTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); }
91 inline CanaryRun& WithTimeline(const CanaryRunTimeline& value) { SetTimeline(value); return *this;}
92 inline CanaryRun& WithTimeline(CanaryRunTimeline&& value) { SetTimeline(std::move(value)); return *this;}
94
96
100 inline const Aws::String& GetArtifactS3Location() const{ return m_artifactS3Location; }
101 inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; }
102 inline void SetArtifactS3Location(const Aws::String& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = value; }
103 inline void SetArtifactS3Location(Aws::String&& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = std::move(value); }
104 inline void SetArtifactS3Location(const char* value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location.assign(value); }
105 inline CanaryRun& WithArtifactS3Location(const Aws::String& value) { SetArtifactS3Location(value); return *this;}
106 inline CanaryRun& WithArtifactS3Location(Aws::String&& value) { SetArtifactS3Location(std::move(value)); return *this;}
107 inline CanaryRun& WithArtifactS3Location(const char* value) { SetArtifactS3Location(value); return *this;}
109 private:
110
111 Aws::String m_id;
112 bool m_idHasBeenSet = false;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 CanaryRunStatus m_status;
118 bool m_statusHasBeenSet = false;
119
120 CanaryRunTimeline m_timeline;
121 bool m_timelineHasBeenSet = false;
122
123 Aws::String m_artifactS3Location;
124 bool m_artifactS3LocationHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Synthetics
129} // namespace Aws
bool ArtifactS3LocationHasBeenSet() const
Definition CanaryRun.h:101
void SetName(const char *value)
Definition CanaryRun.h:65
AWS_SYNTHETICS_API CanaryRun & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition CanaryRun.h:61
CanaryRun & WithTimeline(CanaryRunTimeline &&value)
Definition CanaryRun.h:92
void SetStatus(CanaryRunStatus &&value)
Definition CanaryRun.h:78
CanaryRun & WithId(Aws::String &&value)
Definition CanaryRun.h:53
void SetId(const Aws::String &value)
Definition CanaryRun.h:49
CanaryRun & WithArtifactS3Location(const char *value)
Definition CanaryRun.h:107
CanaryRun & WithId(const char *value)
Definition CanaryRun.h:54
void SetId(const char *value)
Definition CanaryRun.h:51
void SetId(Aws::String &&value)
Definition CanaryRun.h:50
AWS_SYNTHETICS_API CanaryRun()
const CanaryRunTimeline & GetTimeline() const
Definition CanaryRun.h:87
const Aws::String & GetArtifactS3Location() const
Definition CanaryRun.h:100
CanaryRun & WithArtifactS3Location(const Aws::String &value)
Definition CanaryRun.h:105
void SetArtifactS3Location(const Aws::String &value)
Definition CanaryRun.h:102
CanaryRun & WithId(const Aws::String &value)
Definition CanaryRun.h:52
CanaryRun & WithName(const Aws::String &value)
Definition CanaryRun.h:66
CanaryRun & WithStatus(const CanaryRunStatus &value)
Definition CanaryRun.h:79
void SetTimeline(CanaryRunTimeline &&value)
Definition CanaryRun.h:90
void SetArtifactS3Location(Aws::String &&value)
Definition CanaryRun.h:103
void SetName(const Aws::String &value)
Definition CanaryRun.h:63
CanaryRun & WithArtifactS3Location(Aws::String &&value)
Definition CanaryRun.h:106
const CanaryRunStatus & GetStatus() const
Definition CanaryRun.h:75
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetArtifactS3Location(const char *value)
Definition CanaryRun.h:104
void SetName(Aws::String &&value)
Definition CanaryRun.h:64
AWS_SYNTHETICS_API CanaryRun(Aws::Utils::Json::JsonView jsonValue)
CanaryRun & WithTimeline(const CanaryRunTimeline &value)
Definition CanaryRun.h:91
void SetTimeline(const CanaryRunTimeline &value)
Definition CanaryRun.h:89
CanaryRun & WithName(const char *value)
Definition CanaryRun.h:68
CanaryRun & WithStatus(CanaryRunStatus &&value)
Definition CanaryRun.h:80
void SetStatus(const CanaryRunStatus &value)
Definition CanaryRun.h:77
CanaryRun & WithName(Aws::String &&value)
Definition CanaryRun.h:67
const Aws::String & GetId() const
Definition CanaryRun.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue