AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogSubscription.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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 DirectoryService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DIRECTORYSERVICE_API LogSubscription() = default;
37 AWS_DIRECTORYSERVICE_API LogSubscription(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DIRECTORYSERVICE_API LogSubscription& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
48 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
49 template<typename DirectoryIdT = Aws::String>
50 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
51 template<typename DirectoryIdT = Aws::String>
52 LogSubscription& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
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) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
63 template<typename LogGroupNameT = Aws::String>
64 LogSubscription& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetSubscriptionCreatedDateTime() const { return m_subscriptionCreatedDateTime; }
72 inline bool SubscriptionCreatedDateTimeHasBeenSet() const { return m_subscriptionCreatedDateTimeHasBeenSet; }
73 template<typename SubscriptionCreatedDateTimeT = Aws::Utils::DateTime>
74 void SetSubscriptionCreatedDateTime(SubscriptionCreatedDateTimeT&& value) { m_subscriptionCreatedDateTimeHasBeenSet = true; m_subscriptionCreatedDateTime = std::forward<SubscriptionCreatedDateTimeT>(value); }
75 template<typename SubscriptionCreatedDateTimeT = Aws::Utils::DateTime>
76 LogSubscription& WithSubscriptionCreatedDateTime(SubscriptionCreatedDateTimeT&& value) { SetSubscriptionCreatedDateTime(std::forward<SubscriptionCreatedDateTimeT>(value)); return *this;}
78 private:
79
80 Aws::String m_directoryId;
81 bool m_directoryIdHasBeenSet = false;
82
83 Aws::String m_logGroupName;
84 bool m_logGroupNameHasBeenSet = false;
85
86 Aws::Utils::DateTime m_subscriptionCreatedDateTime{};
87 bool m_subscriptionCreatedDateTimeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace DirectoryService
92} // namespace Aws
void SetSubscriptionCreatedDateTime(SubscriptionCreatedDateTimeT &&value)
LogSubscription & WithLogGroupName(LogGroupNameT &&value)
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DIRECTORYSERVICE_API LogSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
LogSubscription & WithDirectoryId(DirectoryIdT &&value)
AWS_DIRECTORYSERVICE_API LogSubscription(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue