AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EnableUserRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/AuthenticationType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppStream {
16namespace Model {
17
21 public:
22 AWS_APPSTREAM_API EnableUserRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "EnableUser"; }
29
30 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
31
33
35
42 inline const Aws::String& GetUserName() const { return m_userName; }
43 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
44 template <typename UserNameT = Aws::String>
45 void SetUserName(UserNameT&& value) {
46 m_userNameHasBeenSet = true;
47 m_userName = std::forward<UserNameT>(value);
48 }
49 template <typename UserNameT = Aws::String>
50 EnableUserRequest& WithUserName(UserNameT&& value) {
51 SetUserName(std::forward<UserNameT>(value));
52 return *this;
53 }
55
57
60 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
61 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
63 m_authenticationTypeHasBeenSet = true;
64 m_authenticationType = value;
65 }
68 return *this;
69 }
71 private:
72 Aws::String m_userName;
73
75 bool m_userNameHasBeenSet = false;
76 bool m_authenticationTypeHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace AppStream
81} // namespace Aws
EnableUserRequest & WithUserName(UserNameT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
void SetAuthenticationType(AuthenticationType value)
const Aws::String & GetUserName() const
AWS_APPSTREAM_API EnableUserRequest()=default
virtual const char * GetServiceRequestName() const override
AuthenticationType GetAuthenticationType() const
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
EnableUserRequest & WithAuthenticationType(AuthenticationType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String