/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace ElastiCache { namespace Model { class ModifyUserResult { public: AWS_ELASTICACHE_API ModifyUserResult(); AWS_ELASTICACHE_API ModifyUserResult(const Aws::AmazonWebServiceResult& result); AWS_ELASTICACHE_API ModifyUserResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the user.

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

The ID of the user.

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

The ID of the user.

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

The ID of the user.

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

The ID of the user.

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

The ID of the user.

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

The ID of the user.

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

The username of the user.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

The username of the user.

*/ inline void SetUserName(const Aws::String& value) { m_userName = value; } /** *

The username of the user.

*/ inline void SetUserName(Aws::String&& value) { m_userName = std::move(value); } /** *

The username of the user.

*/ inline void SetUserName(const char* value) { m_userName.assign(value); } /** *

The username of the user.

*/ inline ModifyUserResult& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

The username of the user.

*/ inline ModifyUserResult& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

The username of the user.

*/ inline ModifyUserResult& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

Indicates the user status. Can be "active", "modifying" or "deleting".

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

Indicates the user status. Can be "active", "modifying" or "deleting".

*/ inline void SetStatus(const Aws::String& value) { m_status = value; } /** *

Indicates the user status. Can be "active", "modifying" or "deleting".

*/ inline void SetStatus(Aws::String&& value) { m_status = std::move(value); } /** *

Indicates the user status. Can be "active", "modifying" or "deleting".

*/ inline void SetStatus(const char* value) { m_status.assign(value); } /** *

Indicates the user status. Can be "active", "modifying" or "deleting".

*/ inline ModifyUserResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

Indicates the user status. Can be "active", "modifying" or "deleting".

*/ inline ModifyUserResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

Indicates the user status. Can be "active", "modifying" or "deleting".

*/ inline ModifyUserResult& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The current supported value is Redis.

*/ inline const Aws::String& GetEngine() const{ return m_engine; } /** *

The current supported value is Redis.

*/ inline void SetEngine(const Aws::String& value) { m_engine = value; } /** *

The current supported value is Redis.

*/ inline void SetEngine(Aws::String&& value) { m_engine = std::move(value); } /** *

The current supported value is Redis.

*/ inline void SetEngine(const char* value) { m_engine.assign(value); } /** *

The current supported value is Redis.

*/ inline ModifyUserResult& WithEngine(const Aws::String& value) { SetEngine(value); return *this;} /** *

The current supported value is Redis.

*/ inline ModifyUserResult& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;} /** *

The current supported value is Redis.

*/ inline ModifyUserResult& WithEngine(const char* value) { SetEngine(value); return *this;} /** *

The minimum engine version required, which is Redis 6.0

*/ inline const Aws::String& GetMinimumEngineVersion() const{ return m_minimumEngineVersion; } /** *

The minimum engine version required, which is Redis 6.0

*/ inline void SetMinimumEngineVersion(const Aws::String& value) { m_minimumEngineVersion = value; } /** *

The minimum engine version required, which is Redis 6.0

*/ inline void SetMinimumEngineVersion(Aws::String&& value) { m_minimumEngineVersion = std::move(value); } /** *

The minimum engine version required, which is Redis 6.0

*/ inline void SetMinimumEngineVersion(const char* value) { m_minimumEngineVersion.assign(value); } /** *

The minimum engine version required, which is Redis 6.0

*/ inline ModifyUserResult& WithMinimumEngineVersion(const Aws::String& value) { SetMinimumEngineVersion(value); return *this;} /** *

The minimum engine version required, which is Redis 6.0

*/ inline ModifyUserResult& WithMinimumEngineVersion(Aws::String&& value) { SetMinimumEngineVersion(std::move(value)); return *this;} /** *

The minimum engine version required, which is Redis 6.0

*/ inline ModifyUserResult& WithMinimumEngineVersion(const char* value) { SetMinimumEngineVersion(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 void SetAccessString(const Aws::String& value) { m_accessString = value; } /** *

Access permissions string used for this user.

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

Access permissions string used for this user.

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

Access permissions string used for this user.

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

Access permissions string used for this user.

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

Access permissions string used for this user.

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

Returns a list of the user group IDs the user belongs to.

*/ inline const Aws::Vector& GetUserGroupIds() const{ return m_userGroupIds; } /** *

Returns a list of the user group IDs the user belongs to.

*/ inline void SetUserGroupIds(const Aws::Vector& value) { m_userGroupIds = value; } /** *

Returns a list of the user group IDs the user belongs to.

*/ inline void SetUserGroupIds(Aws::Vector&& value) { m_userGroupIds = std::move(value); } /** *

Returns a list of the user group IDs the user belongs to.

*/ inline ModifyUserResult& WithUserGroupIds(const Aws::Vector& value) { SetUserGroupIds(value); return *this;} /** *

Returns a list of the user group IDs the user belongs to.

*/ inline ModifyUserResult& WithUserGroupIds(Aws::Vector&& value) { SetUserGroupIds(std::move(value)); return *this;} /** *

Returns a list of the user group IDs the user belongs to.

*/ inline ModifyUserResult& AddUserGroupIds(const Aws::String& value) { m_userGroupIds.push_back(value); return *this; } /** *

Returns a list of the user group IDs the user belongs to.

*/ inline ModifyUserResult& AddUserGroupIds(Aws::String&& value) { m_userGroupIds.push_back(std::move(value)); return *this; } /** *

Returns a list of the user group IDs the user belongs to.

*/ inline ModifyUserResult& AddUserGroupIds(const char* value) { m_userGroupIds.push_back(value); return *this; } /** *

Denotes whether the user requires a password to authenticate.

*/ inline const Authentication& GetAuthentication() const{ return m_authentication; } /** *

Denotes whether the user requires a password to authenticate.

*/ inline void SetAuthentication(const Authentication& value) { m_authentication = value; } /** *

Denotes whether the user requires a password to authenticate.

*/ inline void SetAuthentication(Authentication&& value) { m_authentication = std::move(value); } /** *

Denotes whether the user requires a password to authenticate.

*/ inline ModifyUserResult& WithAuthentication(const Authentication& value) { SetAuthentication(value); return *this;} /** *

Denotes whether the user requires a password to authenticate.

*/ inline ModifyUserResult& WithAuthentication(Authentication&& value) { SetAuthentication(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the user.

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The Amazon Resource Name (ARN) of the user.

*/ inline void SetARN(const Aws::String& value) { m_aRN = value; } /** *

The Amazon Resource Name (ARN) of the user.

*/ inline void SetARN(Aws::String&& value) { m_aRN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the user.

*/ inline void SetARN(const char* value) { m_aRN.assign(value); } /** *

The Amazon Resource Name (ARN) of the user.

*/ inline ModifyUserResult& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the user.

*/ inline ModifyUserResult& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the user.

*/ inline ModifyUserResult& WithARN(const char* value) { SetARN(value); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline ModifyUserResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ModifyUserResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_userId; Aws::String m_userName; Aws::String m_status; Aws::String m_engine; Aws::String m_minimumEngineVersion; Aws::String m_accessString; Aws::Vector m_userGroupIds; Authentication m_authentication; Aws::String m_aRN; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace ElastiCache } // namespace Aws