This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-appstream/include/aws/appstream/model/CreateUserRequest.h

298 lines
13 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appstream/AppStream_EXPORTS.h>
#include <aws/appstream/AppStreamRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appstream/model/MessageAction.h>
#include <aws/appstream/model/AuthenticationType.h>
#include <utility>
namespace Aws
{
namespace AppStream
{
namespace Model
{
/**
*/
class AWS_APPSTREAM_API CreateUserRequest : public AppStreamRequest
{
public:
CreateUserRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The email address of the user.</p> <p>Users' email addresses are
* case-sensitive. During login, if they specify an email address that doesn't use
* the same capitalization as the email address specified when their user pool
* account was created, a "user does not exist" error message displays.</p>
*/
inline const Aws::String& GetUserName() const{ return m_userName; }
/**
* <p>The email address of the user.</p> <p>Users' email addresses are
* case-sensitive. During login, if they specify an email address that doesn't use
* the same capitalization as the email address specified when their user pool
* account was created, a "user does not exist" error message displays.</p>
*/
inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
/**
* <p>The email address of the user.</p> <p>Users' email addresses are
* case-sensitive. During login, if they specify an email address that doesn't use
* the same capitalization as the email address specified when their user pool
* account was created, a "user does not exist" error message displays.</p>
*/
inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
/**
* <p>The email address of the user.</p> <p>Users' email addresses are
* case-sensitive. During login, if they specify an email address that doesn't use
* the same capitalization as the email address specified when their user pool
* account was created, a "user does not exist" error message displays.</p>
*/
inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
/**
* <p>The email address of the user.</p> <p>Users' email addresses are
* case-sensitive. During login, if they specify an email address that doesn't use
* the same capitalization as the email address specified when their user pool
* account was created, a "user does not exist" error message displays.</p>
*/
inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
/**
* <p>The email address of the user.</p> <p>Users' email addresses are
* case-sensitive. During login, if they specify an email address that doesn't use
* the same capitalization as the email address specified when their user pool
* account was created, a "user does not exist" error message displays.</p>
*/
inline CreateUserRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
/**
* <p>The email address of the user.</p> <p>Users' email addresses are
* case-sensitive. During login, if they specify an email address that doesn't use
* the same capitalization as the email address specified when their user pool
* account was created, a "user does not exist" error message displays.</p>
*/
inline CreateUserRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
/**
* <p>The email address of the user.</p> <p>Users' email addresses are
* case-sensitive. During login, if they specify an email address that doesn't use
* the same capitalization as the email address specified when their user pool
* account was created, a "user does not exist" error message displays.</p>
*/
inline CreateUserRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
/**
* <p>The action to take for the welcome email that is sent to a user after the
* user is created in the user pool. If you specify SUPPRESS, no email is sent. If
* you specify RESEND, do not specify the first name or last name of the user. If
* the value is null, the email is sent. </p> <p>The temporary password in
* the welcome email is valid for only 7 days. If users dont set their passwords
* within 7 days, you must send them a new welcome email.</p>
*/
inline const MessageAction& GetMessageAction() const{ return m_messageAction; }
/**
* <p>The action to take for the welcome email that is sent to a user after the
* user is created in the user pool. If you specify SUPPRESS, no email is sent. If
* you specify RESEND, do not specify the first name or last name of the user. If
* the value is null, the email is sent. </p> <p>The temporary password in
* the welcome email is valid for only 7 days. If users dont set their passwords
* within 7 days, you must send them a new welcome email.</p>
*/
inline bool MessageActionHasBeenSet() const { return m_messageActionHasBeenSet; }
/**
* <p>The action to take for the welcome email that is sent to a user after the
* user is created in the user pool. If you specify SUPPRESS, no email is sent. If
* you specify RESEND, do not specify the first name or last name of the user. If
* the value is null, the email is sent. </p> <p>The temporary password in
* the welcome email is valid for only 7 days. If users dont set their passwords
* within 7 days, you must send them a new welcome email.</p>
*/
inline void SetMessageAction(const MessageAction& value) { m_messageActionHasBeenSet = true; m_messageAction = value; }
/**
* <p>The action to take for the welcome email that is sent to a user after the
* user is created in the user pool. If you specify SUPPRESS, no email is sent. If
* you specify RESEND, do not specify the first name or last name of the user. If
* the value is null, the email is sent. </p> <p>The temporary password in
* the welcome email is valid for only 7 days. If users dont set their passwords
* within 7 days, you must send them a new welcome email.</p>
*/
inline void SetMessageAction(MessageAction&& value) { m_messageActionHasBeenSet = true; m_messageAction = std::move(value); }
/**
* <p>The action to take for the welcome email that is sent to a user after the
* user is created in the user pool. If you specify SUPPRESS, no email is sent. If
* you specify RESEND, do not specify the first name or last name of the user. If
* the value is null, the email is sent. </p> <p>The temporary password in
* the welcome email is valid for only 7 days. If users dont set their passwords
* within 7 days, you must send them a new welcome email.</p>
*/
inline CreateUserRequest& WithMessageAction(const MessageAction& value) { SetMessageAction(value); return *this;}
/**
* <p>The action to take for the welcome email that is sent to a user after the
* user is created in the user pool. If you specify SUPPRESS, no email is sent. If
* you specify RESEND, do not specify the first name or last name of the user. If
* the value is null, the email is sent. </p> <p>The temporary password in
* the welcome email is valid for only 7 days. If users dont set their passwords
* within 7 days, you must send them a new welcome email.</p>
*/
inline CreateUserRequest& WithMessageAction(MessageAction&& value) { SetMessageAction(std::move(value)); return *this;}
/**
* <p>The first name, or given name, of the user.</p>
*/
inline const Aws::String& GetFirstName() const{ return m_firstName; }
/**
* <p>The first name, or given name, of the user.</p>
*/
inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
/**
* <p>The first name, or given name, of the user.</p>
*/
inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
/**
* <p>The first name, or given name, of the user.</p>
*/
inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
/**
* <p>The first name, or given name, of the user.</p>
*/
inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
/**
* <p>The first name, or given name, of the user.</p>
*/
inline CreateUserRequest& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
/**
* <p>The first name, or given name, of the user.</p>
*/
inline CreateUserRequest& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
/**
* <p>The first name, or given name, of the user.</p>
*/
inline CreateUserRequest& WithFirstName(const char* value) { SetFirstName(value); return *this;}
/**
* <p>The last name, or surname, of the user.</p>
*/
inline const Aws::String& GetLastName() const{ return m_lastName; }
/**
* <p>The last name, or surname, of the user.</p>
*/
inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
/**
* <p>The last name, or surname, of the user.</p>
*/
inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
/**
* <p>The last name, or surname, of the user.</p>
*/
inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
/**
* <p>The last name, or surname, of the user.</p>
*/
inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
/**
* <p>The last name, or surname, of the user.</p>
*/
inline CreateUserRequest& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
/**
* <p>The last name, or surname, of the user.</p>
*/
inline CreateUserRequest& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
/**
* <p>The last name, or surname, of the user.</p>
*/
inline CreateUserRequest& WithLastName(const char* value) { SetLastName(value); return *this;}
/**
* <p>The authentication type for the user. You must specify USERPOOL. </p>
*/
inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
/**
* <p>The authentication type for the user. You must specify USERPOOL. </p>
*/
inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
/**
* <p>The authentication type for the user. You must specify USERPOOL. </p>
*/
inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
/**
* <p>The authentication type for the user. You must specify USERPOOL. </p>
*/
inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
/**
* <p>The authentication type for the user. You must specify USERPOOL. </p>
*/
inline CreateUserRequest& WithAuthenticationType(const AuthenticationType& value) { SetAuthenticationType(value); return *this;}
/**
* <p>The authentication type for the user. You must specify USERPOOL. </p>
*/
inline CreateUserRequest& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;}
private:
Aws::String m_userName;
bool m_userNameHasBeenSet;
MessageAction m_messageAction;
bool m_messageActionHasBeenSet;
Aws::String m_firstName;
bool m_firstNameHasBeenSet;
Aws::String m_lastName;
bool m_lastNameHasBeenSet;
AuthenticationType m_authenticationType;
bool m_authenticationTypeHasBeenSet;
};
} // namespace Model
} // namespace AppStream
} // namespace Aws