AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TerminationHealth.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.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 Chime
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CHIME_API TerminationHealth();
40 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
48 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
49 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
50 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
51 inline TerminationHealth& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
52 inline TerminationHealth& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetSource() const{ return m_source; }
60 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
61 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
62 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
63 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
64 inline TerminationHealth& WithSource(const Aws::String& value) { SetSource(value); return *this;}
65 inline TerminationHealth& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
66 inline TerminationHealth& WithSource(const char* value) { SetSource(value); return *this;}
68 private:
69
70 Aws::Utils::DateTime m_timestamp;
71 bool m_timestampHasBeenSet = false;
72
73 Aws::String m_source;
74 bool m_sourceHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Chime
79} // namespace Aws
AWS_CHIME_API TerminationHealth & operator=(Aws::Utils::Json::JsonView jsonValue)
TerminationHealth & WithSource(const Aws::String &value)
const Aws::String & GetSource() const
void SetSource(const Aws::String &value)
void SetTimestamp(Aws::Utils::DateTime &&value)
TerminationHealth & WithTimestamp(Aws::Utils::DateTime &&value)
TerminationHealth & WithSource(Aws::String &&value)
TerminationHealth & WithTimestamp(const Aws::Utils::DateTime &value)
void SetTimestamp(const Aws::Utils::DateTime &value)
void SetSource(Aws::String &&value)
TerminationHealth & WithSource(const char *value)
const Aws::Utils::DateTime & GetTimestamp() const
AWS_CHIME_API TerminationHealth(Aws::Utils::Json::JsonView jsonValue)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue