AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
LogSubscription.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/ds/DirectoryService_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace DirectoryService {
21namespace Model {
22
30 public:
31 AWS_DIRECTORYSERVICE_API LogSubscription() = default;
32 AWS_DIRECTORYSERVICE_API LogSubscription(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_DIRECTORYSERVICE_API LogSubscription& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_DIRECTORYSERVICE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
41 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
42 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
43 template <typename DirectoryIdT = Aws::String>
44 void SetDirectoryId(DirectoryIdT&& value) {
45 m_directoryIdHasBeenSet = true;
46 m_directoryId = std::forward<DirectoryIdT>(value);
47 }
48 template <typename DirectoryIdT = Aws::String>
49 LogSubscription& WithDirectoryId(DirectoryIdT&& value) {
50 SetDirectoryId(std::forward<DirectoryIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
60 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
61 template <typename LogGroupNameT = Aws::String>
62 void SetLogGroupName(LogGroupNameT&& value) {
63 m_logGroupNameHasBeenSet = true;
64 m_logGroupName = std::forward<LogGroupNameT>(value);
65 }
66 template <typename LogGroupNameT = Aws::String>
67 LogSubscription& WithLogGroupName(LogGroupNameT&& value) {
68 SetLogGroupName(std::forward<LogGroupNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetSubscriptionCreatedDateTime() const { return m_subscriptionCreatedDateTime; }
78 inline bool SubscriptionCreatedDateTimeHasBeenSet() const { return m_subscriptionCreatedDateTimeHasBeenSet; }
79 template <typename SubscriptionCreatedDateTimeT = Aws::Utils::DateTime>
80 void SetSubscriptionCreatedDateTime(SubscriptionCreatedDateTimeT&& value) {
81 m_subscriptionCreatedDateTimeHasBeenSet = true;
82 m_subscriptionCreatedDateTime = std::forward<SubscriptionCreatedDateTimeT>(value);
83 }
84 template <typename SubscriptionCreatedDateTimeT = Aws::Utils::DateTime>
85 LogSubscription& WithSubscriptionCreatedDateTime(SubscriptionCreatedDateTimeT&& value) {
86 SetSubscriptionCreatedDateTime(std::forward<SubscriptionCreatedDateTimeT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_directoryId;
92
93 Aws::String m_logGroupName;
94
95 Aws::Utils::DateTime m_subscriptionCreatedDateTime{};
96 bool m_directoryIdHasBeenSet = false;
97 bool m_logGroupNameHasBeenSet = false;
98 bool m_subscriptionCreatedDateTimeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace DirectoryService
103} // namespace Aws
void SetSubscriptionCreatedDateTime(SubscriptionCreatedDateTimeT &&value)
LogSubscription & WithLogGroupName(LogGroupNameT &&value)
LogSubscription & WithDirectoryId(DirectoryIdT &&value)
AWS_DIRECTORYSERVICE_API LogSubscription & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_DIRECTORYSERVICE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_DIRECTORYSERVICE_API LogSubscription(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Utils::DateTime & GetSubscriptionCreatedDateTime() const
AWS_DIRECTORYSERVICE_API LogSubscription()=default
LogSubscription & WithSubscriptionCreatedDateTime(SubscriptionCreatedDateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String