/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CodeStar { namespace Model { /** */ class UpdateUserProfileRequest : public CodeStarRequest { public: AWS_CODESTAR_API UpdateUserProfileRequest(); // 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 "UpdateUserProfile"; } AWS_CODESTAR_API Aws::String SerializePayload() const override; AWS_CODESTAR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name that will be displayed as the friendly name for the user in AWS * CodeStar.

*/ inline const Aws::String& GetUserArn() const{ return m_userArn; } /** *

The name that will be displayed as the friendly name for the user in AWS * CodeStar.

*/ inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; } /** *

The name that will be displayed as the friendly name for the user in AWS * CodeStar.

*/ inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; } /** *

The name that will be displayed as the friendly name for the user in AWS * CodeStar.

*/ inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); } /** *

The name that will be displayed as the friendly name for the user in AWS * CodeStar.

*/ inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); } /** *

The name that will be displayed as the friendly name for the user in AWS * CodeStar.

*/ inline UpdateUserProfileRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;} /** *

The name that will be displayed as the friendly name for the user in AWS * CodeStar.

*/ inline UpdateUserProfileRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;} /** *

The name that will be displayed as the friendly name for the user in AWS * CodeStar.

*/ inline UpdateUserProfileRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;} /** *

The name that is displayed as the friendly name for the user in AWS * CodeStar.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The name that is displayed as the friendly name for the user in AWS * CodeStar.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The name that is displayed as the friendly name for the user in AWS * CodeStar.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The name that is displayed as the friendly name for the user in AWS * CodeStar.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The name that is displayed as the friendly name for the user in AWS * CodeStar.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The name that is displayed as the friendly name for the user in AWS * CodeStar.

*/ inline UpdateUserProfileRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The name that is displayed as the friendly name for the user in AWS * CodeStar.

*/ inline UpdateUserProfileRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The name that is displayed as the friendly name for the user in AWS * CodeStar.

*/ inline UpdateUserProfileRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The email address that is displayed as part of the user's profile in AWS * CodeStar.

*/ inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; } /** *

The email address that is displayed as part of the user's profile in AWS * CodeStar.

*/ inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; } /** *

The email address that is displayed as part of the user's profile in AWS * CodeStar.

*/ inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; } /** *

The email address that is displayed as part of the user's profile in AWS * CodeStar.

*/ inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); } /** *

The email address that is displayed as part of the user's profile in AWS * CodeStar.

*/ inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); } /** *

The email address that is displayed as part of the user's profile in AWS * CodeStar.

*/ inline UpdateUserProfileRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;} /** *

The email address that is displayed as part of the user's profile in AWS * CodeStar.

*/ inline UpdateUserProfileRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;} /** *

The email address that is displayed as part of the user's profile in AWS * CodeStar.

*/ inline UpdateUserProfileRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;} /** *

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

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

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

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

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

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

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

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

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

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

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

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

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

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

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

*/ inline UpdateUserProfileRequest& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;} private: Aws::String m_userArn; bool m_userArnHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_emailAddress; bool m_emailAddressHasBeenSet = false; Aws::String m_sshPublicKey; bool m_sshPublicKeyHasBeenSet = false; }; } // namespace Model } // namespace CodeStar } // namespace Aws