AWS SDK for C++  1.9.15
AWS SDK for C++
CreateAliasRequest.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 "CreateAlias"; }
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 CreateAliasRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
70 
74  inline CreateAliasRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
75 
79  inline CreateAliasRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
80 
81 
87  inline const Aws::String& GetAlias() const{ return m_alias; }
88 
94  inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
95 
101  inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
102 
108  inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
109 
115  inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
116 
122  inline CreateAliasRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
123 
129  inline CreateAliasRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
130 
136  inline CreateAliasRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
137 
138  private:
139 
140  Aws::String m_directoryId;
141  bool m_directoryIdHasBeenSet;
142 
143  Aws::String m_alias;
144  bool m_aliasHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace DirectoryService
149 } // namespace Aws
Aws::DirectoryService::Model::CreateAliasRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::CreateAliasRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: CreateAliasRequest.h:59
Aws::DirectoryService::Model::CreateAliasRequest::SetAlias
void SetAlias(Aws::String &&value)
Definition: CreateAliasRequest.h:108
Aws::DirectoryService::Model::CreateAliasRequest::WithDirectoryId
CreateAliasRequest & WithDirectoryId(const char *value)
Definition: CreateAliasRequest.h:79
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::CreateAliasRequest::AliasHasBeenSet
bool AliasHasBeenSet() const
Definition: CreateAliasRequest.h:94
Aws::DirectoryService::Model::CreateAliasRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAliasRequest.h:34
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::CreateAliasRequest::GetAlias
const Aws::String & GetAlias() const
Definition: CreateAliasRequest.h:87
Aws::DirectoryService::Model::CreateAliasRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::CreateAliasRequest::SetAlias
void SetAlias(const char *value)
Definition: CreateAliasRequest.h:115
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::CreateAliasRequest::SetAlias
void SetAlias(const Aws::String &value)
Definition: CreateAliasRequest.h:101
Aws::DirectoryService::Model::CreateAliasRequest::WithAlias
CreateAliasRequest & WithAlias(const char *value)
Definition: CreateAliasRequest.h:136
Aws::DirectoryService::Model::CreateAliasRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: CreateAliasRequest.h:54
Aws::DirectoryService::Model::CreateAliasRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: CreateAliasRequest.h:64
Aws::DirectoryService::Model::CreateAliasRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: CreateAliasRequest.h:49
Aws::DirectoryService::Model::CreateAliasRequest
Definition: CreateAliasRequest.h:26
Aws::DirectoryService::Model::CreateAliasRequest::WithAlias
CreateAliasRequest & WithAlias(const Aws::String &value)
Definition: CreateAliasRequest.h:122
Aws::DirectoryService::Model::CreateAliasRequest::WithDirectoryId
CreateAliasRequest & WithDirectoryId(Aws::String &&value)
Definition: CreateAliasRequest.h:74
AWSString.h
Aws::DirectoryService::Model::CreateAliasRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: CreateAliasRequest.h:44
Aws::DirectoryService::Model::CreateAliasRequest::WithAlias
CreateAliasRequest & WithAlias(Aws::String &&value)
Definition: CreateAliasRequest.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::CreateAliasRequest::CreateAliasRequest
CreateAliasRequest()
Aws::DirectoryService::Model::CreateAliasRequest::WithDirectoryId
CreateAliasRequest & WithDirectoryId(const Aws::String &value)
Definition: CreateAliasRequest.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DirectoryServiceRequest.h