AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CanaryLastRun.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/CanaryRun.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Synthetics
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SYNTHETICS_API CanaryLastRun() = default;
37 AWS_SYNTHETICS_API CanaryLastRun(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SYNTHETICS_API CanaryLastRun& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCanaryName() const { return m_canaryName; }
47 inline bool CanaryNameHasBeenSet() const { return m_canaryNameHasBeenSet; }
48 template<typename CanaryNameT = Aws::String>
49 void SetCanaryName(CanaryNameT&& value) { m_canaryNameHasBeenSet = true; m_canaryName = std::forward<CanaryNameT>(value); }
50 template<typename CanaryNameT = Aws::String>
51 CanaryLastRun& WithCanaryName(CanaryNameT&& value) { SetCanaryName(std::forward<CanaryNameT>(value)); return *this;}
53
55
58 inline const CanaryRun& GetLastRun() const { return m_lastRun; }
59 inline bool LastRunHasBeenSet() const { return m_lastRunHasBeenSet; }
60 template<typename LastRunT = CanaryRun>
61 void SetLastRun(LastRunT&& value) { m_lastRunHasBeenSet = true; m_lastRun = std::forward<LastRunT>(value); }
62 template<typename LastRunT = CanaryRun>
63 CanaryLastRun& WithLastRun(LastRunT&& value) { SetLastRun(std::forward<LastRunT>(value)); return *this;}
65 private:
66
67 Aws::String m_canaryName;
68 bool m_canaryNameHasBeenSet = false;
69
70 CanaryRun m_lastRun;
71 bool m_lastRunHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Synthetics
76} // namespace Aws
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
CanaryLastRun & WithLastRun(LastRunT &&value)
const Aws::String & GetCanaryName() const
AWS_SYNTHETICS_API CanaryLastRun()=default
AWS_SYNTHETICS_API CanaryLastRun & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCanaryName(CanaryNameT &&value)
AWS_SYNTHETICS_API CanaryLastRun(Aws::Utils::Json::JsonView jsonValue)
const CanaryRun & GetLastRun() const
CanaryLastRun & WithCanaryName(CanaryNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue