AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UnshareDirectoryRequest.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/ds/DirectoryServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ds/model/UnshareTarget.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DirectoryService
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DIRECTORYSERVICE_API UnshareDirectoryRequest() = default;
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_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
34
35 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
44 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
45 template<typename DirectoryIdT = Aws::String>
46 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
47 template<typename DirectoryIdT = Aws::String>
48 UnshareDirectoryRequest& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
50
52
56 inline const UnshareTarget& GetUnshareTarget() const { return m_unshareTarget; }
57 inline bool UnshareTargetHasBeenSet() const { return m_unshareTargetHasBeenSet; }
58 template<typename UnshareTargetT = UnshareTarget>
59 void SetUnshareTarget(UnshareTargetT&& value) { m_unshareTargetHasBeenSet = true; m_unshareTarget = std::forward<UnshareTargetT>(value); }
60 template<typename UnshareTargetT = UnshareTarget>
61 UnshareDirectoryRequest& WithUnshareTarget(UnshareTargetT&& value) { SetUnshareTarget(std::forward<UnshareTargetT>(value)); return *this;}
63 private:
64
65 Aws::String m_directoryId;
66 bool m_directoryIdHasBeenSet = false;
67
68 UnshareTarget m_unshareTarget;
69 bool m_unshareTargetHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace DirectoryService
74} // namespace Aws
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
AWS_DIRECTORYSERVICE_API UnshareDirectoryRequest()=default
UnshareDirectoryRequest & WithDirectoryId(DirectoryIdT &&value)
virtual const char * GetServiceRequestName() const override
UnshareDirectoryRequest & WithUnshareTarget(UnshareTargetT &&value)
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String