AWS SDK for C++  1.8.152
AWS SDK for C++
ShareDirectoryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DirectoryService
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ShareDirectory"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
44 
49  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
50 
55  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
56 
61  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
62 
67  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
68 
73  inline ShareDirectoryRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
74 
79  inline ShareDirectoryRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
80 
85  inline ShareDirectoryRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
86 
87 
94  inline const Aws::String& GetShareNotes() const{ return m_shareNotes; }
95 
102  inline bool ShareNotesHasBeenSet() const { return m_shareNotesHasBeenSet; }
103 
110  inline void SetShareNotes(const Aws::String& value) { m_shareNotesHasBeenSet = true; m_shareNotes = value; }
111 
118  inline void SetShareNotes(Aws::String&& value) { m_shareNotesHasBeenSet = true; m_shareNotes = std::move(value); }
119 
126  inline void SetShareNotes(const char* value) { m_shareNotesHasBeenSet = true; m_shareNotes.assign(value); }
127 
134  inline ShareDirectoryRequest& WithShareNotes(const Aws::String& value) { SetShareNotes(value); return *this;}
135 
142  inline ShareDirectoryRequest& WithShareNotes(Aws::String&& value) { SetShareNotes(std::move(value)); return *this;}
143 
150  inline ShareDirectoryRequest& WithShareNotes(const char* value) { SetShareNotes(value); return *this;}
151 
152 
157  inline const ShareTarget& GetShareTarget() const{ return m_shareTarget; }
158 
163  inline bool ShareTargetHasBeenSet() const { return m_shareTargetHasBeenSet; }
164 
169  inline void SetShareTarget(const ShareTarget& value) { m_shareTargetHasBeenSet = true; m_shareTarget = value; }
170 
175  inline void SetShareTarget(ShareTarget&& value) { m_shareTargetHasBeenSet = true; m_shareTarget = std::move(value); }
176 
181  inline ShareDirectoryRequest& WithShareTarget(const ShareTarget& value) { SetShareTarget(value); return *this;}
182 
187  inline ShareDirectoryRequest& WithShareTarget(ShareTarget&& value) { SetShareTarget(std::move(value)); return *this;}
188 
189 
196  inline const ShareMethod& GetShareMethod() const{ return m_shareMethod; }
197 
204  inline bool ShareMethodHasBeenSet() const { return m_shareMethodHasBeenSet; }
205 
212  inline void SetShareMethod(const ShareMethod& value) { m_shareMethodHasBeenSet = true; m_shareMethod = value; }
213 
220  inline void SetShareMethod(ShareMethod&& value) { m_shareMethodHasBeenSet = true; m_shareMethod = std::move(value); }
221 
228  inline ShareDirectoryRequest& WithShareMethod(const ShareMethod& value) { SetShareMethod(value); return *this;}
229 
236  inline ShareDirectoryRequest& WithShareMethod(ShareMethod&& value) { SetShareMethod(std::move(value)); return *this;}
237 
238  private:
239 
240  Aws::String m_directoryId;
241  bool m_directoryIdHasBeenSet;
242 
243  Aws::String m_shareNotes;
244  bool m_shareNotesHasBeenSet;
245 
246  ShareTarget m_shareTarget;
247  bool m_shareTargetHasBeenSet;
248 
249  ShareMethod m_shareMethod;
250  bool m_shareMethodHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace DirectoryService
255 } // namespace Aws
Aws::DirectoryService::Model::ShareDirectoryRequest::GetShareNotes
const Aws::String & GetShareNotes() const
Definition: ShareDirectoryRequest.h:94
ShareTarget.h
Aws::DirectoryService::Model::ShareDirectoryRequest::SetShareNotes
void SetShareNotes(const Aws::String &value)
Definition: ShareDirectoryRequest.h:110
Aws::DirectoryService::Model::ShareDirectoryRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: ShareDirectoryRequest.h:49
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::ShareDirectoryRequest::SetShareNotes
void SetShareNotes(const char *value)
Definition: ShareDirectoryRequest.h:126
Aws::DirectoryService::Model::ShareDirectoryRequest::WithShareNotes
ShareDirectoryRequest & WithShareNotes(const char *value)
Definition: ShareDirectoryRequest.h:150
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ShareMethod.h
Aws::DirectoryService::Model::ShareDirectoryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::ShareTarget
Definition: ShareTarget.h:34
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::ShareDirectoryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ShareDirectoryRequest.h:32
Aws::DirectoryService::Model::ShareDirectoryRequest::SetShareMethod
void SetShareMethod(const ShareMethod &value)
Definition: ShareDirectoryRequest.h:212
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::ShareDirectoryRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: ShareDirectoryRequest.h:55
Aws::DirectoryService::Model::ShareDirectoryRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: ShareDirectoryRequest.h:61
Aws::DirectoryService::Model::ShareDirectoryRequest::WithShareNotes
ShareDirectoryRequest & WithShareNotes(const Aws::String &value)
Definition: ShareDirectoryRequest.h:134
Aws::DirectoryService::Model::ShareDirectoryRequest::ShareDirectoryRequest
ShareDirectoryRequest()
Aws::DirectoryService::Model::ShareDirectoryRequest::WithShareTarget
ShareDirectoryRequest & WithShareTarget(const ShareTarget &value)
Definition: ShareDirectoryRequest.h:181
Aws::DirectoryService::Model::ShareDirectoryRequest::WithShareMethod
ShareDirectoryRequest & WithShareMethod(const ShareMethod &value)
Definition: ShareDirectoryRequest.h:228
Aws::DirectoryService::Model::ShareDirectoryRequest::SetShareTarget
void SetShareTarget(const ShareTarget &value)
Definition: ShareDirectoryRequest.h:169
Aws::DirectoryService::Model::ShareDirectoryRequest::SetShareNotes
void SetShareNotes(Aws::String &&value)
Definition: ShareDirectoryRequest.h:118
Aws::DirectoryService::Model::ShareDirectoryRequest::GetShareMethod
const ShareMethod & GetShareMethod() const
Definition: ShareDirectoryRequest.h:196
AWSString.h
Aws::DirectoryService::Model::ShareDirectoryRequest::ShareNotesHasBeenSet
bool ShareNotesHasBeenSet() const
Definition: ShareDirectoryRequest.h:102
Aws::DirectoryService::Model::ShareDirectoryRequest::ShareTargetHasBeenSet
bool ShareTargetHasBeenSet() const
Definition: ShareDirectoryRequest.h:163
Aws::DirectoryService::Model::ShareDirectoryRequest::WithShareMethod
ShareDirectoryRequest & WithShareMethod(ShareMethod &&value)
Definition: ShareDirectoryRequest.h:236
Aws::DirectoryService::Model::ShareDirectoryRequest::SetShareTarget
void SetShareTarget(ShareTarget &&value)
Definition: ShareDirectoryRequest.h:175
Aws::DirectoryService::Model::ShareDirectoryRequest::WithShareTarget
ShareDirectoryRequest & WithShareTarget(ShareTarget &&value)
Definition: ShareDirectoryRequest.h:187
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::ShareDirectoryRequest::ShareMethodHasBeenSet
bool ShareMethodHasBeenSet() const
Definition: ShareDirectoryRequest.h:204
Aws::DirectoryService::Model::ShareDirectoryRequest::GetShareTarget
const ShareTarget & GetShareTarget() const
Definition: ShareDirectoryRequest.h:157
Aws::DirectoryService::Model::ShareDirectoryRequest
Definition: ShareDirectoryRequest.h:24
Aws::DirectoryService::Model::ShareDirectoryRequest::WithShareNotes
ShareDirectoryRequest & WithShareNotes(Aws::String &&value)
Definition: ShareDirectoryRequest.h:142
Aws::DirectoryService::Model::ShareDirectoryRequest::WithDirectoryId
ShareDirectoryRequest & WithDirectoryId(Aws::String &&value)
Definition: ShareDirectoryRequest.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::ShareDirectoryRequest::WithDirectoryId
ShareDirectoryRequest & WithDirectoryId(const Aws::String &value)
Definition: ShareDirectoryRequest.h:73
Aws::DirectoryService::Model::ShareDirectoryRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: ShareDirectoryRequest.h:43
DirectoryServiceRequest.h
Aws::DirectoryService::Model::ShareDirectoryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::ShareDirectoryRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: ShareDirectoryRequest.h:67
Aws::DirectoryService::Model::ShareDirectoryRequest::WithDirectoryId
ShareDirectoryRequest & WithDirectoryId(const char *value)
Definition: ShareDirectoryRequest.h:85
Aws::DirectoryService::Model::ShareDirectoryRequest::SetShareMethod
void SetShareMethod(ShareMethod &&value)
Definition: ShareDirectoryRequest.h:220
Aws::DirectoryService::Model::ShareMethod
ShareMethod
Definition: ShareMethod.h:17