AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
CanaryLastRun.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/synthetics/Synthetics_EXPORTS.h>
9#include <aws/synthetics/model/CanaryRun.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Synthetics {
21namespace Model {
22
30 public:
31 AWS_SYNTHETICS_API CanaryLastRun() = default;
32 AWS_SYNTHETICS_API CanaryLastRun(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SYNTHETICS_API CanaryLastRun& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCanaryName() const { return m_canaryName; }
41 inline bool CanaryNameHasBeenSet() const { return m_canaryNameHasBeenSet; }
42 template <typename CanaryNameT = Aws::String>
43 void SetCanaryName(CanaryNameT&& value) {
44 m_canaryNameHasBeenSet = true;
45 m_canaryName = std::forward<CanaryNameT>(value);
46 }
47 template <typename CanaryNameT = Aws::String>
48 CanaryLastRun& WithCanaryName(CanaryNameT&& value) {
49 SetCanaryName(std::forward<CanaryNameT>(value));
50 return *this;
51 }
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) {
62 m_lastRunHasBeenSet = true;
63 m_lastRun = std::forward<LastRunT>(value);
64 }
65 template <typename LastRunT = CanaryRun>
66 CanaryLastRun& WithLastRun(LastRunT&& value) {
67 SetLastRun(std::forward<LastRunT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_canaryName;
73 bool m_canaryNameHasBeenSet = false;
74
75 CanaryRun m_lastRun;
76 bool m_lastRunHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Synthetics
81} // 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