AWS SDK for C++  1.9.1
AWS SDK for C++
CreateSnapshotRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshot"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
45 
49  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
50 
54  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
55 
59  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
60 
64  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
65 
69  inline CreateSnapshotRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
70 
74  inline CreateSnapshotRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
75 
79  inline CreateSnapshotRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
80 
81 
85  inline const Aws::String& GetName() const{ return m_name; }
86 
90  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 
95  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
96 
100  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
101 
105  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 
110  inline CreateSnapshotRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
111 
115  inline CreateSnapshotRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
116 
120  inline CreateSnapshotRequest& WithName(const char* value) { SetName(value); return *this;}
121 
122  private:
123 
124  Aws::String m_directoryId;
125  bool m_directoryIdHasBeenSet;
126 
127  Aws::String m_name;
128  bool m_nameHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace DirectoryService
133 } // namespace Aws
Aws::DirectoryService::Model::CreateSnapshotRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: CreateSnapshotRequest.h:49
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::CreateSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::CreateSnapshotRequest
Definition: CreateSnapshotRequest.h:26
Aws::DirectoryService::Model::CreateSnapshotRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateSnapshotRequest.h:90
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::CreateSnapshotRequest::WithName
CreateSnapshotRequest & WithName(const char *value)
Definition: CreateSnapshotRequest.h:120
Aws::DirectoryService::Model::CreateSnapshotRequest::WithDirectoryId
CreateSnapshotRequest & WithDirectoryId(const char *value)
Definition: CreateSnapshotRequest.h:79
Aws::DirectoryService::Model::CreateSnapshotRequest::WithName
CreateSnapshotRequest & WithName(Aws::String &&value)
Definition: CreateSnapshotRequest.h:115
Aws::DirectoryService::Model::CreateSnapshotRequest::WithDirectoryId
CreateSnapshotRequest & WithDirectoryId(const Aws::String &value)
Definition: CreateSnapshotRequest.h:69
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::CreateSnapshotRequest::CreateSnapshotRequest
CreateSnapshotRequest()
Aws::DirectoryService::Model::CreateSnapshotRequest::WithName
CreateSnapshotRequest & WithName(const Aws::String &value)
Definition: CreateSnapshotRequest.h:110
Aws::DirectoryService::Model::CreateSnapshotRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateSnapshotRequest.h:95
Aws::DirectoryService::Model::CreateSnapshotRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::CreateSnapshotRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: CreateSnapshotRequest.h:44
AWSString.h
Aws::DirectoryService::Model::CreateSnapshotRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: CreateSnapshotRequest.h:54
Aws::DirectoryService::Model::CreateSnapshotRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: CreateSnapshotRequest.h:64
Aws::DirectoryService::Model::CreateSnapshotRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateSnapshotRequest.h:100
Aws::DirectoryService::Model::CreateSnapshotRequest::WithDirectoryId
CreateSnapshotRequest & WithDirectoryId(Aws::String &&value)
Definition: CreateSnapshotRequest.h:74
Aws::DirectoryService::Model::CreateSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSnapshotRequest.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::CreateSnapshotRequest::GetName
const Aws::String & GetName() const
Definition: CreateSnapshotRequest.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::CreateSnapshotRequest::SetName
void SetName(const char *value)
Definition: CreateSnapshotRequest.h:105
Aws::DirectoryService::Model::CreateSnapshotRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: CreateSnapshotRequest.h:59
DirectoryServiceRequest.h