AWS SDK for C++  1.9.1
AWS SDK for C++
EnableLDAPSRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/ds/model/LDAPSType.h>
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 "EnableLDAPS"; }
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 EnableLDAPSRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
67 
71  inline EnableLDAPSRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
72 
76  inline EnableLDAPSRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
77 
78 
83  inline const LDAPSType& GetType() const{ return m_type; }
84 
89  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 
95  inline void SetType(const LDAPSType& value) { m_typeHasBeenSet = true; m_type = value; }
96 
101  inline void SetType(LDAPSType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
102 
107  inline EnableLDAPSRequest& WithType(const LDAPSType& value) { SetType(value); return *this;}
108 
113  inline EnableLDAPSRequest& WithType(LDAPSType&& value) { SetType(std::move(value)); return *this;}
114 
115  private:
116 
117  Aws::String m_directoryId;
118  bool m_directoryIdHasBeenSet;
119 
120  LDAPSType m_type;
121  bool m_typeHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace DirectoryService
126 } // 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::EnableLDAPSRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: EnableLDAPSRequest.h:51
Aws::DirectoryService::Model::EnableLDAPSRequest::WithType
EnableLDAPSRequest & WithType(LDAPSType &&value)
Definition: EnableLDAPSRequest.h:113
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::EnableLDAPSRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::EnableLDAPSRequest::SetType
void SetType(LDAPSType &&value)
Definition: EnableLDAPSRequest.h:101
Aws::DirectoryService::Model::LDAPSType
LDAPSType
Definition: LDAPSType.h:17
Aws::DirectoryService::Model::EnableLDAPSRequest::WithDirectoryId
EnableLDAPSRequest & WithDirectoryId(const char *value)
Definition: EnableLDAPSRequest.h:76
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::EnableLDAPSRequest
Definition: EnableLDAPSRequest.h:23
Aws::DirectoryService::Model::EnableLDAPSRequest::WithDirectoryId
EnableLDAPSRequest & WithDirectoryId(const Aws::String &value)
Definition: EnableLDAPSRequest.h:66
LDAPSType.h
Aws::DirectoryService::Model::EnableLDAPSRequest::WithType
EnableLDAPSRequest & WithType(const LDAPSType &value)
Definition: EnableLDAPSRequest.h:107
Aws::DirectoryService::Model::EnableLDAPSRequest::EnableLDAPSRequest
EnableLDAPSRequest()
AWSString.h
Aws::DirectoryService::Model::EnableLDAPSRequest::WithDirectoryId
EnableLDAPSRequest & WithDirectoryId(Aws::String &&value)
Definition: EnableLDAPSRequest.h:71
Aws::DirectoryService::Model::EnableLDAPSRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: EnableLDAPSRequest.h:46
Aws::DirectoryService::Model::EnableLDAPSRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: EnableLDAPSRequest.h:41
Aws::DirectoryService::Model::EnableLDAPSRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: EnableLDAPSRequest.h:89
Aws::DirectoryService::Model::EnableLDAPSRequest::SetType
void SetType(const LDAPSType &value)
Definition: EnableLDAPSRequest.h:95
Aws::DirectoryService::Model::EnableLDAPSRequest::GetType
const LDAPSType & GetType() const
Definition: EnableLDAPSRequest.h:83
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::EnableLDAPSRequest::SerializePayload
Aws::String SerializePayload() const override
DirectoryServiceRequest.h
Aws::DirectoryService::Model::EnableLDAPSRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: EnableLDAPSRequest.h:56
Aws::DirectoryService::Model::EnableLDAPSRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnableLDAPSRequest.h:31
Aws::DirectoryService::Model::EnableLDAPSRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: EnableLDAPSRequest.h:61