AWS SDK for C++  1.9.16
AWS SDK for C++
LogSubscription.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace DirectoryService
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
47 
52  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
53 
58  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
59 
64  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
65 
70  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
71 
76  inline LogSubscription& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
77 
82  inline LogSubscription& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
83 
88  inline LogSubscription& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
89 
90 
94  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
95 
99  inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
100 
104  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
105 
109  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
110 
114  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
115 
119  inline LogSubscription& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
120 
124  inline LogSubscription& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
125 
129  inline LogSubscription& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
130 
131 
135  inline const Aws::Utils::DateTime& GetSubscriptionCreatedDateTime() const{ return m_subscriptionCreatedDateTime; }
136 
140  inline bool SubscriptionCreatedDateTimeHasBeenSet() const { return m_subscriptionCreatedDateTimeHasBeenSet; }
141 
145  inline void SetSubscriptionCreatedDateTime(const Aws::Utils::DateTime& value) { m_subscriptionCreatedDateTimeHasBeenSet = true; m_subscriptionCreatedDateTime = value; }
146 
150  inline void SetSubscriptionCreatedDateTime(Aws::Utils::DateTime&& value) { m_subscriptionCreatedDateTimeHasBeenSet = true; m_subscriptionCreatedDateTime = std::move(value); }
151 
155  inline LogSubscription& WithSubscriptionCreatedDateTime(const Aws::Utils::DateTime& value) { SetSubscriptionCreatedDateTime(value); return *this;}
156 
160  inline LogSubscription& WithSubscriptionCreatedDateTime(Aws::Utils::DateTime&& value) { SetSubscriptionCreatedDateTime(std::move(value)); return *this;}
161 
162  private:
163 
164  Aws::String m_directoryId;
165  bool m_directoryIdHasBeenSet;
166 
167  Aws::String m_logGroupName;
168  bool m_logGroupNameHasBeenSet;
169 
170  Aws::Utils::DateTime m_subscriptionCreatedDateTime;
171  bool m_subscriptionCreatedDateTimeHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace DirectoryService
176 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DirectoryService::Model::LogSubscription::WithLogGroupName
LogSubscription & WithLogGroupName(Aws::String &&value)
Definition: LogSubscription.h:124
Aws::DirectoryService::Model::LogSubscription::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: LogSubscription.h:46
Aws::DirectoryService::Model::LogSubscription::operator=
LogSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::LogSubscription::WithLogGroupName
LogSubscription & WithLogGroupName(const char *value)
Definition: LogSubscription.h:129
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::LogSubscription::LogGroupNameHasBeenSet
bool LogGroupNameHasBeenSet() const
Definition: LogSubscription.h:99
Aws::DirectoryService::Model::LogSubscription::SubscriptionCreatedDateTimeHasBeenSet
bool SubscriptionCreatedDateTimeHasBeenSet() const
Definition: LogSubscription.h:140
Aws::DirectoryService::Model::LogSubscription::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: LogSubscription.h:58
Aws::DirectoryService::Model::LogSubscription::LogSubscription
LogSubscription()
DateTime.h
Aws::DirectoryService::Model::LogSubscription::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: LogSubscription.h:70
Aws::DirectoryService::Model::LogSubscription::WithDirectoryId
LogSubscription & WithDirectoryId(const Aws::String &value)
Definition: LogSubscription.h:76
Aws::DirectoryService::Model::LogSubscription::WithSubscriptionCreatedDateTime
LogSubscription & WithSubscriptionCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: LogSubscription.h:160
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::LogSubscription
Definition: LogSubscription.h:34
Aws::DirectoryService::Model::LogSubscription::SetLogGroupName
void SetLogGroupName(Aws::String &&value)
Definition: LogSubscription.h:109
Aws::DirectoryService::Model::LogSubscription::WithDirectoryId
LogSubscription & WithDirectoryId(const char *value)
Definition: LogSubscription.h:88
Aws::DirectoryService::Model::LogSubscription::WithDirectoryId
LogSubscription & WithDirectoryId(Aws::String &&value)
Definition: LogSubscription.h:82
Aws::DirectoryService::Model::LogSubscription::LogSubscription
LogSubscription(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::LogSubscription::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: LogSubscription.h:52
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::DirectoryService::Model::LogSubscription::SetSubscriptionCreatedDateTime
void SetSubscriptionCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: LogSubscription.h:150
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::LogSubscription::SetLogGroupName
void SetLogGroupName(const Aws::String &value)
Definition: LogSubscription.h:104
Aws::DirectoryService::Model::LogSubscription::SetLogGroupName
void SetLogGroupName(const char *value)
Definition: LogSubscription.h:114
Aws::DirectoryService::Model::LogSubscription::GetLogGroupName
const Aws::String & GetLogGroupName() const
Definition: LogSubscription.h:94
Aws::DirectoryService::Model::LogSubscription::WithLogGroupName
LogSubscription & WithLogGroupName(const Aws::String &value)
Definition: LogSubscription.h:119
Aws::DirectoryService::Model::LogSubscription::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::LogSubscription::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: LogSubscription.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::LogSubscription::SetSubscriptionCreatedDateTime
void SetSubscriptionCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: LogSubscription.h:145
Aws::DirectoryService::Model::LogSubscription::WithSubscriptionCreatedDateTime
LogSubscription & WithSubscriptionCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: LogSubscription.h:155
Aws::DirectoryService::Model::LogSubscription::GetSubscriptionCreatedDateTime
const Aws::Utils::DateTime & GetSubscriptionCreatedDateTime() const
Definition: LogSubscription.h:135