AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EnableSsoRequest.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/ds/DirectoryServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace DirectoryService
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_DIRECTORYSERVICE_API EnableSsoRequest() = default;
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 "EnableSso"; }
35
36 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
46 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
47 template<typename DirectoryIdT = Aws::String>
48 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
49 template<typename DirectoryIdT = Aws::String>
50 EnableSsoRequest& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
52
54
63 inline const Aws::String& GetUserName() const { return m_userName; }
64 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
65 template<typename UserNameT = Aws::String>
66 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
67 template<typename UserNameT = Aws::String>
68 EnableSsoRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
70
72
77 inline const Aws::String& GetPassword() const { return m_password; }
78 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
79 template<typename PasswordT = Aws::String>
80 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
81 template<typename PasswordT = Aws::String>
82 EnableSsoRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
84 private:
85
86 Aws::String m_directoryId;
87 bool m_directoryIdHasBeenSet = false;
88
89 Aws::String m_userName;
90 bool m_userNameHasBeenSet = false;
91
92 Aws::String m_password;
93 bool m_passwordHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace DirectoryService
98} // namespace Aws
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
EnableSsoRequest & WithDirectoryId(DirectoryIdT &&value)
EnableSsoRequest & WithUserName(UserNameT &&value)
AWS_DIRECTORYSERVICE_API EnableSsoRequest()=default
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
EnableSsoRequest & WithPassword(PasswordT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String