AWS SDK for C++  1.9.1
AWS SDK for C++
UnshareDirectoryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DirectoryService
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UnshareDirectory"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
43 
48  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
49 
54  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
55 
60  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
61 
66  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
67 
72  inline UnshareDirectoryRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
73 
78  inline UnshareDirectoryRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
79 
84  inline UnshareDirectoryRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
85 
86 
91  inline const UnshareTarget& GetUnshareTarget() const{ return m_unshareTarget; }
92 
97  inline bool UnshareTargetHasBeenSet() const { return m_unshareTargetHasBeenSet; }
98 
103  inline void SetUnshareTarget(const UnshareTarget& value) { m_unshareTargetHasBeenSet = true; m_unshareTarget = value; }
104 
109  inline void SetUnshareTarget(UnshareTarget&& value) { m_unshareTargetHasBeenSet = true; m_unshareTarget = std::move(value); }
110 
115  inline UnshareDirectoryRequest& WithUnshareTarget(const UnshareTarget& value) { SetUnshareTarget(value); return *this;}
116 
121  inline UnshareDirectoryRequest& WithUnshareTarget(UnshareTarget&& value) { SetUnshareTarget(std::move(value)); return *this;}
122 
123  private:
124 
125  Aws::String m_directoryId;
126  bool m_directoryIdHasBeenSet;
127 
128  UnshareTarget m_unshareTarget;
129  bool m_unshareTargetHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace DirectoryService
134 } // 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::UnshareDirectoryRequest::WithUnshareTarget
UnshareDirectoryRequest & WithUnshareTarget(const UnshareTarget &value)
Definition: UnshareDirectoryRequest.h:115
Aws::DirectoryService::Model::UnshareDirectoryRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: UnshareDirectoryRequest.h:48
Aws::DirectoryService::Model::UnshareDirectoryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::UnshareDirectoryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::UnshareDirectoryRequest::WithUnshareTarget
UnshareDirectoryRequest & WithUnshareTarget(UnshareTarget &&value)
Definition: UnshareDirectoryRequest.h:121
UnshareTarget.h
Aws::DirectoryService::Model::UnshareDirectoryRequest::UnshareDirectoryRequest
UnshareDirectoryRequest()
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::UnshareDirectoryRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: UnshareDirectoryRequest.h:66
Aws::DirectoryService::Model::UnshareDirectoryRequest::WithDirectoryId
UnshareDirectoryRequest & WithDirectoryId(Aws::String &&value)
Definition: UnshareDirectoryRequest.h:78
Aws::DirectoryService::Model::UnshareTarget
Definition: UnshareTarget.h:34
Aws::DirectoryService::Model::UnshareDirectoryRequest::GetUnshareTarget
const UnshareTarget & GetUnshareTarget() const
Definition: UnshareDirectoryRequest.h:91
Aws::DirectoryService::Model::UnshareDirectoryRequest
Definition: UnshareDirectoryRequest.h:23
Aws::DirectoryService::Model::UnshareDirectoryRequest::SetUnshareTarget
void SetUnshareTarget(UnshareTarget &&value)
Definition: UnshareDirectoryRequest.h:109
Aws::DirectoryService::Model::UnshareDirectoryRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: UnshareDirectoryRequest.h:54
Aws::DirectoryService::Model::UnshareDirectoryRequest::UnshareTargetHasBeenSet
bool UnshareTargetHasBeenSet() const
Definition: UnshareDirectoryRequest.h:97
Aws::DirectoryService::Model::UnshareDirectoryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UnshareDirectoryRequest.h:31
AWSString.h
Aws::DirectoryService::Model::UnshareDirectoryRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: UnshareDirectoryRequest.h:60
Aws::DirectoryService::Model::UnshareDirectoryRequest::WithDirectoryId
UnshareDirectoryRequest & WithDirectoryId(const Aws::String &value)
Definition: UnshareDirectoryRequest.h:72
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::UnshareDirectoryRequest::WithDirectoryId
UnshareDirectoryRequest & WithDirectoryId(const char *value)
Definition: UnshareDirectoryRequest.h:84
DirectoryServiceRequest.h
Aws::DirectoryService::Model::UnshareDirectoryRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: UnshareDirectoryRequest.h:42
Aws::DirectoryService::Model::UnshareDirectoryRequest::SetUnshareTarget
void SetUnshareTarget(const UnshareTarget &value)
Definition: UnshareDirectoryRequest.h:103