/** * 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 GameLift { namespace Model { /** *

Set of credentials required to remotely access a fleet * instance.

See Also:

AWS * API Reference

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

User login string.

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

User login string.

*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *

User login string.

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

User login string.

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

User login string.

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

User login string.

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

User login string.

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

User login string.

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

Secret string. For Windows instances, the secret is a password for use with * Windows Remote Desktop. For Linux instances, it is a private key (which must be * saved as a .pem file) for use with SSH.

*/ inline const Aws::String& GetSecret() const{ return m_secret; } /** *

Secret string. For Windows instances, the secret is a password for use with * Windows Remote Desktop. For Linux instances, it is a private key (which must be * saved as a .pem file) for use with SSH.

*/ inline bool SecretHasBeenSet() const { return m_secretHasBeenSet; } /** *

Secret string. For Windows instances, the secret is a password for use with * Windows Remote Desktop. For Linux instances, it is a private key (which must be * saved as a .pem file) for use with SSH.

*/ inline void SetSecret(const Aws::String& value) { m_secretHasBeenSet = true; m_secret = value; } /** *

Secret string. For Windows instances, the secret is a password for use with * Windows Remote Desktop. For Linux instances, it is a private key (which must be * saved as a .pem file) for use with SSH.

*/ inline void SetSecret(Aws::String&& value) { m_secretHasBeenSet = true; m_secret = std::move(value); } /** *

Secret string. For Windows instances, the secret is a password for use with * Windows Remote Desktop. For Linux instances, it is a private key (which must be * saved as a .pem file) for use with SSH.

*/ inline void SetSecret(const char* value) { m_secretHasBeenSet = true; m_secret.assign(value); } /** *

Secret string. For Windows instances, the secret is a password for use with * Windows Remote Desktop. For Linux instances, it is a private key (which must be * saved as a .pem file) for use with SSH.

*/ inline InstanceCredentials& WithSecret(const Aws::String& value) { SetSecret(value); return *this;} /** *

Secret string. For Windows instances, the secret is a password for use with * Windows Remote Desktop. For Linux instances, it is a private key (which must be * saved as a .pem file) for use with SSH.

*/ inline InstanceCredentials& WithSecret(Aws::String&& value) { SetSecret(std::move(value)); return *this;} /** *

Secret string. For Windows instances, the secret is a password for use with * Windows Remote Desktop. For Linux instances, it is a private key (which must be * saved as a .pem file) for use with SSH.

*/ inline InstanceCredentials& WithSecret(const char* value) { SetSecret(value); return *this;} private: Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::String m_secret; bool m_secretHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws