AWS SDK for C++  1.9.1
AWS SDK for C++
CreateLogSubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DirectoryService
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateLogSubscription"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
42 
47  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
48 
53  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
54 
59  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
60 
65  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
66 
71  inline CreateLogSubscriptionRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
72 
77  inline CreateLogSubscriptionRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
78 
83  inline CreateLogSubscriptionRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
84 
85 
90  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
91 
96  inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
97 
102  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
103 
108  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
109 
114  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
115 
120  inline CreateLogSubscriptionRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
121 
126  inline CreateLogSubscriptionRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
127 
132  inline CreateLogSubscriptionRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
133 
134  private:
135 
136  Aws::String m_directoryId;
137  bool m_directoryIdHasBeenSet;
138 
139  Aws::String m_logGroupName;
140  bool m_logGroupNameHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace DirectoryService
145 } // namespace Aws
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::WithDirectoryId
CreateLogSubscriptionRequest & WithDirectoryId(const char *value)
Definition: CreateLogSubscriptionRequest.h:83
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::SetLogGroupName
void SetLogGroupName(const char *value)
Definition: CreateLogSubscriptionRequest.h:114
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::LogGroupNameHasBeenSet
bool LogGroupNameHasBeenSet() const
Definition: CreateLogSubscriptionRequest.h:96
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLogSubscriptionRequest.h:30
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::WithDirectoryId
CreateLogSubscriptionRequest & WithDirectoryId(Aws::String &&value)
Definition: CreateLogSubscriptionRequest.h:77
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::CreateLogSubscriptionRequest
CreateLogSubscriptionRequest()
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: CreateLogSubscriptionRequest.h:53
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: CreateLogSubscriptionRequest.h:41
AWSString.h
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::WithLogGroupName
CreateLogSubscriptionRequest & WithLogGroupName(const Aws::String &value)
Definition: CreateLogSubscriptionRequest.h:120
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::WithDirectoryId
CreateLogSubscriptionRequest & WithDirectoryId(const Aws::String &value)
Definition: CreateLogSubscriptionRequest.h:71
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: CreateLogSubscriptionRequest.h:65
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::WithLogGroupName
CreateLogSubscriptionRequest & WithLogGroupName(Aws::String &&value)
Definition: CreateLogSubscriptionRequest.h:126
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: CreateLogSubscriptionRequest.h:47
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::SetLogGroupName
void SetLogGroupName(Aws::String &&value)
Definition: CreateLogSubscriptionRequest.h:108
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::GetLogGroupName
const Aws::String & GetLogGroupName() const
Definition: CreateLogSubscriptionRequest.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DirectoryServiceRequest.h
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::SetLogGroupName
void SetLogGroupName(const Aws::String &value)
Definition: CreateLogSubscriptionRequest.h:102
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: CreateLogSubscriptionRequest.h:59
Aws::DirectoryService::Model::CreateLogSubscriptionRequest
Definition: CreateLogSubscriptionRequest.h:22
Aws::DirectoryService::Model::CreateLogSubscriptionRequest::WithLogGroupName
CreateLogSubscriptionRequest & WithLogGroupName(const char *value)
Definition: CreateLogSubscriptionRequest.h:132