AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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/ds/DirectoryService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DirectoryService {
21namespace Model {
22
30 public:
31 AWS_DIRECTORYSERVICE_API LogSubscription() = default;
32 AWS_DIRECTORYSERVICE_API LogSubscription(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DIRECTORYSERVICE_API LogSubscription& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() 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)
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