/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ElastiCache { namespace Model { /** */ class ModifyUserRequest : public ElastiCacheRequest { public: AWS_ELASTICACHE_API ModifyUserRequest(); // 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 "ModifyUser"; } AWS_ELASTICACHE_API Aws::String SerializePayload() const override; protected: AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ID of the user.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The ID of the user.

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

The ID of the user.

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

The ID of the user.

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

The ID of the user.

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

The ID of the user.

*/ inline ModifyUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The ID of the user.

*/ inline ModifyUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The ID of the user.

*/ inline ModifyUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;} /** *

Access permissions string used for this user.

*/ inline const Aws::String& GetAccessString() const{ return m_accessString; } /** *

Access permissions string used for this user.

*/ inline bool AccessStringHasBeenSet() const { return m_accessStringHasBeenSet; } /** *

Access permissions string used for this user.

*/ inline void SetAccessString(const Aws::String& value) { m_accessStringHasBeenSet = true; m_accessString = value; } /** *

Access permissions string used for this user.

*/ inline void SetAccessString(Aws::String&& value) { m_accessStringHasBeenSet = true; m_accessString = std::move(value); } /** *

Access permissions string used for this user.

*/ inline void SetAccessString(const char* value) { m_accessStringHasBeenSet = true; m_accessString.assign(value); } /** *

Access permissions string used for this user.

*/ inline ModifyUserRequest& WithAccessString(const Aws::String& value) { SetAccessString(value); return *this;} /** *

Access permissions string used for this user.

*/ inline ModifyUserRequest& WithAccessString(Aws::String&& value) { SetAccessString(std::move(value)); return *this;} /** *

Access permissions string used for this user.

*/ inline ModifyUserRequest& WithAccessString(const char* value) { SetAccessString(value); return *this;} /** *

Adds additional user permissions to the access string.

*/ inline const Aws::String& GetAppendAccessString() const{ return m_appendAccessString; } /** *

Adds additional user permissions to the access string.

*/ inline bool AppendAccessStringHasBeenSet() const { return m_appendAccessStringHasBeenSet; } /** *

Adds additional user permissions to the access string.

*/ inline void SetAppendAccessString(const Aws::String& value) { m_appendAccessStringHasBeenSet = true; m_appendAccessString = value; } /** *

Adds additional user permissions to the access string.

*/ inline void SetAppendAccessString(Aws::String&& value) { m_appendAccessStringHasBeenSet = true; m_appendAccessString = std::move(value); } /** *

Adds additional user permissions to the access string.

*/ inline void SetAppendAccessString(const char* value) { m_appendAccessStringHasBeenSet = true; m_appendAccessString.assign(value); } /** *

Adds additional user permissions to the access string.

*/ inline ModifyUserRequest& WithAppendAccessString(const Aws::String& value) { SetAppendAccessString(value); return *this;} /** *

Adds additional user permissions to the access string.

*/ inline ModifyUserRequest& WithAppendAccessString(Aws::String&& value) { SetAppendAccessString(std::move(value)); return *this;} /** *

Adds additional user permissions to the access string.

*/ inline ModifyUserRequest& WithAppendAccessString(const char* value) { SetAppendAccessString(value); return *this;} /** *

The passwords belonging to the user. You are allowed up to two.

*/ inline const Aws::Vector& GetPasswords() const{ return m_passwords; } /** *

The passwords belonging to the user. You are allowed up to two.

*/ inline bool PasswordsHasBeenSet() const { return m_passwordsHasBeenSet; } /** *

The passwords belonging to the user. You are allowed up to two.

*/ inline void SetPasswords(const Aws::Vector& value) { m_passwordsHasBeenSet = true; m_passwords = value; } /** *

The passwords belonging to the user. You are allowed up to two.

*/ inline void SetPasswords(Aws::Vector&& value) { m_passwordsHasBeenSet = true; m_passwords = std::move(value); } /** *

The passwords belonging to the user. You are allowed up to two.

*/ inline ModifyUserRequest& WithPasswords(const Aws::Vector& value) { SetPasswords(value); return *this;} /** *

The passwords belonging to the user. You are allowed up to two.

*/ inline ModifyUserRequest& WithPasswords(Aws::Vector&& value) { SetPasswords(std::move(value)); return *this;} /** *

The passwords belonging to the user. You are allowed up to two.

*/ inline ModifyUserRequest& AddPasswords(const Aws::String& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; } /** *

The passwords belonging to the user. You are allowed up to two.

*/ inline ModifyUserRequest& AddPasswords(Aws::String&& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(std::move(value)); return *this; } /** *

The passwords belonging to the user. You are allowed up to two.

*/ inline ModifyUserRequest& AddPasswords(const char* value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; } /** *

Indicates no password is required for the user.

*/ inline bool GetNoPasswordRequired() const{ return m_noPasswordRequired; } /** *

Indicates no password is required for the user.

*/ inline bool NoPasswordRequiredHasBeenSet() const { return m_noPasswordRequiredHasBeenSet; } /** *

Indicates no password is required for the user.

*/ inline void SetNoPasswordRequired(bool value) { m_noPasswordRequiredHasBeenSet = true; m_noPasswordRequired = value; } /** *

Indicates no password is required for the user.

*/ inline ModifyUserRequest& WithNoPasswordRequired(bool value) { SetNoPasswordRequired(value); return *this;} /** *

Specifies how to authenticate the user.

*/ inline const AuthenticationMode& GetAuthenticationMode() const{ return m_authenticationMode; } /** *

Specifies how to authenticate the user.

*/ inline bool AuthenticationModeHasBeenSet() const { return m_authenticationModeHasBeenSet; } /** *

Specifies how to authenticate the user.

*/ inline void SetAuthenticationMode(const AuthenticationMode& value) { m_authenticationModeHasBeenSet = true; m_authenticationMode = value; } /** *

Specifies how to authenticate the user.

*/ inline void SetAuthenticationMode(AuthenticationMode&& value) { m_authenticationModeHasBeenSet = true; m_authenticationMode = std::move(value); } /** *

Specifies how to authenticate the user.

*/ inline ModifyUserRequest& WithAuthenticationMode(const AuthenticationMode& value) { SetAuthenticationMode(value); return *this;} /** *

Specifies how to authenticate the user.

*/ inline ModifyUserRequest& WithAuthenticationMode(AuthenticationMode&& value) { SetAuthenticationMode(std::move(value)); return *this;} private: Aws::String m_userId; bool m_userIdHasBeenSet = false; Aws::String m_accessString; bool m_accessStringHasBeenSet = false; Aws::String m_appendAccessString; bool m_appendAccessStringHasBeenSet = false; Aws::Vector m_passwords; bool m_passwordsHasBeenSet = false; bool m_noPasswordRequired; bool m_noPasswordRequiredHasBeenSet = false; AuthenticationMode m_authenticationMode; bool m_authenticationModeHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws