AWS SDK for C++  1.9.15
AWS SDK for C++
UpdateNumberOfDomainControllersRequest.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 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateNumberOfDomainControllers"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
42 
47  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
48 
53  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
54 
59  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
60 
65  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
66 
71  inline UpdateNumberOfDomainControllersRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
72 
77  inline UpdateNumberOfDomainControllersRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
78 
83  inline UpdateNumberOfDomainControllersRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
84 
85 
89  inline int GetDesiredNumber() const{ return m_desiredNumber; }
90 
94  inline bool DesiredNumberHasBeenSet() const { return m_desiredNumberHasBeenSet; }
95 
99  inline void SetDesiredNumber(int value) { m_desiredNumberHasBeenSet = true; m_desiredNumber = value; }
100 
104  inline UpdateNumberOfDomainControllersRequest& WithDesiredNumber(int value) { SetDesiredNumber(value); return *this;}
105 
106  private:
107 
108  Aws::String m_directoryId;
109  bool m_directoryIdHasBeenSet;
110 
111  int m_desiredNumber;
112  bool m_desiredNumberHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace DirectoryService
117 } // namespace Aws
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: UpdateNumberOfDomainControllersRequest.h:47
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
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::WithDirectoryId
UpdateNumberOfDomainControllersRequest & WithDirectoryId(const char *value)
Definition: UpdateNumberOfDomainControllersRequest.h:83
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest
Definition: UpdateNumberOfDomainControllersRequest.h:22
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::WithDirectoryId
UpdateNumberOfDomainControllersRequest & WithDirectoryId(const Aws::String &value)
Definition: UpdateNumberOfDomainControllersRequest.h:71
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::WithDirectoryId
UpdateNumberOfDomainControllersRequest & WithDirectoryId(Aws::String &&value)
Definition: UpdateNumberOfDomainControllersRequest.h:77
AWSString.h
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::DesiredNumberHasBeenSet
bool DesiredNumberHasBeenSet() const
Definition: UpdateNumberOfDomainControllersRequest.h:94
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateNumberOfDomainControllersRequest.h:30
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::UpdateNumberOfDomainControllersRequest
UpdateNumberOfDomainControllersRequest()
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::SetDesiredNumber
void SetDesiredNumber(int value)
Definition: UpdateNumberOfDomainControllersRequest.h:99
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::WithDesiredNumber
UpdateNumberOfDomainControllersRequest & WithDesiredNumber(int value)
Definition: UpdateNumberOfDomainControllersRequest.h:104
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: UpdateNumberOfDomainControllersRequest.h:59
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::UpdateNumberOfDomainControllersRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: UpdateNumberOfDomainControllersRequest.h:53
DirectoryServiceRequest.h
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::GetDesiredNumber
int GetDesiredNumber() const
Definition: UpdateNumberOfDomainControllersRequest.h:89
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: UpdateNumberOfDomainControllersRequest.h:65
Aws::DirectoryService::Model::UpdateNumberOfDomainControllersRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: UpdateNumberOfDomainControllersRequest.h:41