/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a log subscription, which tracks real-time data from a chosen log
* group to a specified destination.See Also:
AWS
* API Reference
Identifier (ID) of the directory that you want to associate with the log * subscription.
*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *Identifier (ID) of the directory that you want to associate with the log * subscription.
*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *Identifier (ID) of the directory that you want to associate with the log * subscription.
*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *Identifier (ID) of the directory that you want to associate with the log * subscription.
*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *Identifier (ID) of the directory that you want to associate with the log * subscription.
*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *Identifier (ID) of the directory that you want to associate with the log * subscription.
*/ inline LogSubscription& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *Identifier (ID) of the directory that you want to associate with the log * subscription.
*/ inline LogSubscription& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *Identifier (ID) of the directory that you want to associate with the log * subscription.
*/ inline LogSubscription& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *The name of the log group.
*/ inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; } /** *The name of the log group.
*/ inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; } /** *The name of the log group.
*/ inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; } /** *The name of the log group.
*/ inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); } /** *The name of the log group.
*/ inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); } /** *The name of the log group.
*/ inline LogSubscription& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;} /** *The name of the log group.
*/ inline LogSubscription& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;} /** *The name of the log group.
*/ inline LogSubscription& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;} /** *The date and time that the log subscription was created.
*/ inline const Aws::Utils::DateTime& GetSubscriptionCreatedDateTime() const{ return m_subscriptionCreatedDateTime; } /** *The date and time that the log subscription was created.
*/ inline bool SubscriptionCreatedDateTimeHasBeenSet() const { return m_subscriptionCreatedDateTimeHasBeenSet; } /** *The date and time that the log subscription was created.
*/ inline void SetSubscriptionCreatedDateTime(const Aws::Utils::DateTime& value) { m_subscriptionCreatedDateTimeHasBeenSet = true; m_subscriptionCreatedDateTime = value; } /** *The date and time that the log subscription was created.
*/ inline void SetSubscriptionCreatedDateTime(Aws::Utils::DateTime&& value) { m_subscriptionCreatedDateTimeHasBeenSet = true; m_subscriptionCreatedDateTime = std::move(value); } /** *The date and time that the log subscription was created.
*/ inline LogSubscription& WithSubscriptionCreatedDateTime(const Aws::Utils::DateTime& value) { SetSubscriptionCreatedDateTime(value); return *this;} /** *The date and time that the log subscription was created.
*/ inline LogSubscription& WithSubscriptionCreatedDateTime(Aws::Utils::DateTime&& value) { SetSubscriptionCreatedDateTime(std::move(value)); return *this;} private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::String m_logGroupName; bool m_logGroupNameHasBeenSet = false; Aws::Utils::DateTime m_subscriptionCreatedDateTime; bool m_subscriptionCreatedDateTimeHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws