AWS SDK for C++  1.8.154
AWS SDK for C++
RegisterEventTopicRequest.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 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "RegisterEventTopic"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
44 
48  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
49 
53  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
54 
58  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
59 
63  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
64 
68  inline RegisterEventTopicRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
69 
73  inline RegisterEventTopicRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
74 
78  inline RegisterEventTopicRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
79 
80 
85  inline const Aws::String& GetTopicName() const{ return m_topicName; }
86 
91  inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
92 
97  inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; }
98 
103  inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = std::move(value); }
104 
109  inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); }
110 
115  inline RegisterEventTopicRequest& WithTopicName(const Aws::String& value) { SetTopicName(value); return *this;}
116 
121  inline RegisterEventTopicRequest& WithTopicName(Aws::String&& value) { SetTopicName(std::move(value)); return *this;}
122 
127  inline RegisterEventTopicRequest& WithTopicName(const char* value) { SetTopicName(value); return *this;}
128 
129  private:
130 
131  Aws::String m_directoryId;
132  bool m_directoryIdHasBeenSet;
133 
134  Aws::String m_topicName;
135  bool m_topicNameHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace DirectoryService
140 } // namespace Aws
Aws::DirectoryService::Model::RegisterEventTopicRequest::RegisterEventTopicRequest
RegisterEventTopicRequest()
Aws::DirectoryService::Model::RegisterEventTopicRequest
Definition: RegisterEventTopicRequest.h:25
Aws::DirectoryService::Model::RegisterEventTopicRequest::SetTopicName
void SetTopicName(const char *value)
Definition: RegisterEventTopicRequest.h:109
Aws::DirectoryService::Model::RegisterEventTopicRequest::WithDirectoryId
RegisterEventTopicRequest & WithDirectoryId(const char *value)
Definition: RegisterEventTopicRequest.h:78
Aws::DirectoryService::Model::RegisterEventTopicRequest::SetTopicName
void SetTopicName(Aws::String &&value)
Definition: RegisterEventTopicRequest.h:103
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
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::RegisterEventTopicRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::RegisterEventTopicRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: RegisterEventTopicRequest.h:48
Aws::DirectoryService::Model::RegisterEventTopicRequest::TopicNameHasBeenSet
bool TopicNameHasBeenSet() const
Definition: RegisterEventTopicRequest.h:91
Aws::DirectoryService::Model::RegisterEventTopicRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::RegisterEventTopicRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: RegisterEventTopicRequest.h:53
Aws::DirectoryService::Model::RegisterEventTopicRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterEventTopicRequest.h:33
Aws::DirectoryService::Model::RegisterEventTopicRequest::WithTopicName
RegisterEventTopicRequest & WithTopicName(const Aws::String &value)
Definition: RegisterEventTopicRequest.h:115
Aws::DirectoryService::Model::RegisterEventTopicRequest::WithDirectoryId
RegisterEventTopicRequest & WithDirectoryId(Aws::String &&value)
Definition: RegisterEventTopicRequest.h:73
Aws::DirectoryService::Model::RegisterEventTopicRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: RegisterEventTopicRequest.h:58
Aws::DirectoryService::Model::RegisterEventTopicRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: RegisterEventTopicRequest.h:43
AWSString.h
Aws::DirectoryService::Model::RegisterEventTopicRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: RegisterEventTopicRequest.h:63
Aws::DirectoryService::Model::RegisterEventTopicRequest::WithTopicName
RegisterEventTopicRequest & WithTopicName(const char *value)
Definition: RegisterEventTopicRequest.h:127
Aws::DirectoryService::Model::RegisterEventTopicRequest::SetTopicName
void SetTopicName(const Aws::String &value)
Definition: RegisterEventTopicRequest.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::RegisterEventTopicRequest::WithDirectoryId
RegisterEventTopicRequest & WithDirectoryId(const Aws::String &value)
Definition: RegisterEventTopicRequest.h:68
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::RegisterEventTopicRequest::GetTopicName
const Aws::String & GetTopicName() const
Definition: RegisterEventTopicRequest.h:85
DirectoryServiceRequest.h
Aws::DirectoryService::Model::RegisterEventTopicRequest::WithTopicName
RegisterEventTopicRequest & WithTopicName(Aws::String &&value)
Definition: RegisterEventTopicRequest.h:121