/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpsWorks { namespace Model { /** *

Describes a user's SSH information.

See Also:

AWS * API Reference

*/ class UserProfile { public: AWS_OPSWORKS_API UserProfile(); AWS_OPSWORKS_API UserProfile(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKS_API UserProfile& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The user's IAM ARN.

*/ inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; } /** *

The user's IAM ARN.

*/ inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; } /** *

The user's IAM ARN.

*/ inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; } /** *

The user's IAM ARN.

*/ inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); } /** *

The user's IAM ARN.

*/ inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); } /** *

The user's IAM ARN.

*/ inline UserProfile& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;} /** *

The user's IAM ARN.

*/ inline UserProfile& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;} /** *

The user's IAM ARN.

*/ inline UserProfile& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;} /** *

The user's name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The user's name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The user's name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The user's name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The user's name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The user's name.

*/ inline UserProfile& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The user's name.

*/ inline UserProfile& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The user's name.

*/ inline UserProfile& WithName(const char* value) { SetName(value); return *this;} /** *

The user's SSH user name.

*/ inline const Aws::String& GetSshUsername() const{ return m_sshUsername; } /** *

The user's SSH user name.

*/ inline bool SshUsernameHasBeenSet() const { return m_sshUsernameHasBeenSet; } /** *

The user's SSH user name.

*/ inline void SetSshUsername(const Aws::String& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = value; } /** *

The user's SSH user name.

*/ inline void SetSshUsername(Aws::String&& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = std::move(value); } /** *

The user's SSH user name.

*/ inline void SetSshUsername(const char* value) { m_sshUsernameHasBeenSet = true; m_sshUsername.assign(value); } /** *

The user's SSH user name.

*/ inline UserProfile& WithSshUsername(const Aws::String& value) { SetSshUsername(value); return *this;} /** *

The user's SSH user name.

*/ inline UserProfile& WithSshUsername(Aws::String&& value) { SetSshUsername(std::move(value)); return *this;} /** *

The user's SSH user name.

*/ inline UserProfile& WithSshUsername(const char* value) { SetSshUsername(value); return *this;} /** *

The user's SSH public key.

*/ inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; } /** *

The user's SSH public key.

*/ inline bool SshPublicKeyHasBeenSet() const { return m_sshPublicKeyHasBeenSet; } /** *

The user's SSH public key.

*/ inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; } /** *

The user's SSH public key.

*/ inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = std::move(value); } /** *

The user's SSH public key.

*/ inline void SetSshPublicKey(const char* value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey.assign(value); } /** *

The user's SSH public key.

*/ inline UserProfile& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;} /** *

The user's SSH public key.

*/ inline UserProfile& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;} /** *

The user's SSH public key.

*/ inline UserProfile& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;} /** *

Whether users can specify their own SSH public key through the My Settings * page. For more information, see Managing * User Permissions.

*/ inline bool GetAllowSelfManagement() const{ return m_allowSelfManagement; } /** *

Whether users can specify their own SSH public key through the My Settings * page. For more information, see Managing * User Permissions.

*/ inline bool AllowSelfManagementHasBeenSet() const { return m_allowSelfManagementHasBeenSet; } /** *

Whether users can specify their own SSH public key through the My Settings * page. For more information, see Managing * User Permissions.

*/ inline void SetAllowSelfManagement(bool value) { m_allowSelfManagementHasBeenSet = true; m_allowSelfManagement = value; } /** *

Whether users can specify their own SSH public key through the My Settings * page. For more information, see Managing * User Permissions.

*/ inline UserProfile& WithAllowSelfManagement(bool value) { SetAllowSelfManagement(value); return *this;} private: Aws::String m_iamUserArn; bool m_iamUserArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_sshUsername; bool m_sshUsernameHasBeenSet = false; Aws::String m_sshPublicKey; bool m_sshPublicKeyHasBeenSet = false; bool m_allowSelfManagement; bool m_allowSelfManagementHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws