AWS SDK for C++  1.9.1
AWS SDK for C++
EnableClientAuthenticationRequest.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 "EnableClientAuthentication"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
42 
46  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
47 
51  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
52 
56  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
57 
61  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
62 
66  inline EnableClientAuthenticationRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
67 
71  inline EnableClientAuthenticationRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
72 
76  inline EnableClientAuthenticationRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
77 
78 
85  inline const ClientAuthenticationType& GetType() const{ return m_type; }
86 
93  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 
101  inline void SetType(const ClientAuthenticationType& value) { m_typeHasBeenSet = true; m_type = value; }
102 
109  inline void SetType(ClientAuthenticationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
110 
117  inline EnableClientAuthenticationRequest& WithType(const ClientAuthenticationType& value) { SetType(value); return *this;}
118 
125  inline EnableClientAuthenticationRequest& WithType(ClientAuthenticationType&& value) { SetType(std::move(value)); return *this;}
126 
127  private:
128 
129  Aws::String m_directoryId;
130  bool m_directoryIdHasBeenSet;
131 
133  bool m_typeHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace DirectoryService
138 } // namespace Aws
Aws::DirectoryService::Model::ClientAuthenticationType
ClientAuthenticationType
Definition: ClientAuthenticationType.h:17
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::WithType
EnableClientAuthenticationRequest & WithType(const ClientAuthenticationType &value)
Definition: EnableClientAuthenticationRequest.h:117
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::EnableClientAuthenticationRequest
EnableClientAuthenticationRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::SetType
void SetType(ClientAuthenticationType &&value)
Definition: EnableClientAuthenticationRequest.h:109
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: EnableClientAuthenticationRequest.h:61
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::WithType
EnableClientAuthenticationRequest & WithType(ClientAuthenticationType &&value)
Definition: EnableClientAuthenticationRequest.h:125
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnableClientAuthenticationRequest.h:31
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: EnableClientAuthenticationRequest.h:41
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: EnableClientAuthenticationRequest.h:46
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::WithDirectoryId
EnableClientAuthenticationRequest & WithDirectoryId(const Aws::String &value)
Definition: EnableClientAuthenticationRequest.h:66
Aws::DirectoryService::Model::EnableClientAuthenticationRequest
Definition: EnableClientAuthenticationRequest.h:23
AWSString.h
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: EnableClientAuthenticationRequest.h:93
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: EnableClientAuthenticationRequest.h:51
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::WithDirectoryId
EnableClientAuthenticationRequest & WithDirectoryId(Aws::String &&value)
Definition: EnableClientAuthenticationRequest.h:71
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::SetType
void SetType(const ClientAuthenticationType &value)
Definition: EnableClientAuthenticationRequest.h:101
ClientAuthenticationType.h
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::GetType
const ClientAuthenticationType & GetType() const
Definition: EnableClientAuthenticationRequest.h:85
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: EnableClientAuthenticationRequest.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::EnableClientAuthenticationRequest::WithDirectoryId
EnableClientAuthenticationRequest & WithDirectoryId(const char *value)
Definition: EnableClientAuthenticationRequest.h:76
DirectoryServiceRequest.h