AWS SDK for C++

AWS SDK for C++ Version 1.11.847

Loading...
Searching...
No Matches
Relay.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/mailmanager/MailManager_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace MailManager {
21namespace Model {
22
29class Relay {
30 public:
31 AWS_MAILMANAGER_API Relay() = default;
32 AWS_MAILMANAGER_API Relay(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_MAILMANAGER_API Relay& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetRelayId() const { return m_relayId; }
41 inline bool RelayIdHasBeenSet() const { return m_relayIdHasBeenSet; }
42 template <typename RelayIdT = Aws::String>
43 void SetRelayId(RelayIdT&& value) {
44 m_relayIdHasBeenSet = true;
45 m_relayId = std::forward<RelayIdT>(value);
46 }
47 template <typename RelayIdT = Aws::String>
48 Relay& WithRelayId(RelayIdT&& value) {
49 SetRelayId(std::forward<RelayIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRelayName() const { return m_relayName; }
59 inline bool RelayNameHasBeenSet() const { return m_relayNameHasBeenSet; }
60 template <typename RelayNameT = Aws::String>
61 void SetRelayName(RelayNameT&& value) {
62 m_relayNameHasBeenSet = true;
63 m_relayName = std::forward<RelayNameT>(value);
64 }
65 template <typename RelayNameT = Aws::String>
66 Relay& WithRelayName(RelayNameT&& value) {
67 SetRelayName(std::forward<RelayNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
77 inline bool LastModifiedTimestampHasBeenSet() const { return m_lastModifiedTimestampHasBeenSet; }
78 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
79 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) {
80 m_lastModifiedTimestampHasBeenSet = true;
81 m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value);
82 }
83 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
84 Relay& WithLastModifiedTimestamp(LastModifiedTimestampT&& value) {
85 SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_relayId;
91
92 Aws::String m_relayName;
93
94 Aws::Utils::DateTime m_lastModifiedTimestamp{};
95 bool m_relayIdHasBeenSet = false;
96 bool m_relayNameHasBeenSet = false;
97 bool m_lastModifiedTimestampHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace MailManager
102} // namespace Aws
void SetLastModifiedTimestamp(LastModifiedTimestampT &&value)
Definition Relay.h:79
void SetRelayName(RelayNameT &&value)
Definition Relay.h:61
AWS_MAILMANAGER_API Relay()=default
AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetRelayName() const
Definition Relay.h:58
Relay & WithLastModifiedTimestamp(LastModifiedTimestampT &&value)
Definition Relay.h:84
const Aws::String & GetRelayId() const
Definition Relay.h:40
bool RelayIdHasBeenSet() const
Definition Relay.h:41
Relay & WithRelayName(RelayNameT &&value)
Definition Relay.h:66
AWS_MAILMANAGER_API Relay & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Relay & WithRelayId(RelayIdT &&value)
Definition Relay.h:48
const Aws::Utils::DateTime & GetLastModifiedTimestamp() const
Definition Relay.h:76
AWS_MAILMANAGER_API Relay(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetRelayId(RelayIdT &&value)
Definition Relay.h:43
bool RelayNameHasBeenSet() const
Definition Relay.h:59
bool LastModifiedTimestampHasBeenSet() const
Definition Relay.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String