AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnableUserRequest.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/AppStreamRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appstream/model/AuthenticationType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AppStream
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPSTREAM_API EnableUserRequest();
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 "EnableUser"; }
32
33 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
34
36
37
39
46 inline const Aws::String& GetUserName() const{ return m_userName; }
47 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
48 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
49 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
50 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
51 inline EnableUserRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
52 inline EnableUserRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
53 inline EnableUserRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
55
57
60 inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
61 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
62 inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
63 inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
65 inline EnableUserRequest& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_userName;
70 bool m_userNameHasBeenSet = false;
71
72 AuthenticationType m_authenticationType;
73 bool m_authenticationTypeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace AppStream
78} // namespace Aws
EnableUserRequest & WithUserName(Aws::String &&value)
void SetUserName(const Aws::String &value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
const Aws::String & GetUserName() const
EnableUserRequest & WithAuthenticationType(AuthenticationType &&value)
virtual const char * GetServiceRequestName() const override
EnableUserRequest & WithUserName(const Aws::String &value)
void SetAuthenticationType(AuthenticationType &&value)
EnableUserRequest & WithAuthenticationType(const AuthenticationType &value)
void SetAuthenticationType(const AuthenticationType &value)
const AuthenticationType & GetAuthenticationType() const
EnableUserRequest & WithUserName(const char *value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String