/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A set of credentials that allow remote access to an instance in an EC2
* managed fleet. These credentials are returned in response to a call to
* GetInstanceAccess, which requests access for instances that are running
* game servers with the Amazon GameLift server SDK version 4.x or
* earlier.See Also:
AWS
* API Reference
A user name for logging in.
*/ inline const Aws::String& GetUserName() const{ return m_userName; } inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } inline InstanceCredentials& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} inline InstanceCredentials& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} 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's a private key for use with * SSH.
*/ inline const Aws::String& GetSecret() const{ return m_secret; } inline bool SecretHasBeenSet() const { return m_secretHasBeenSet; } inline void SetSecret(const Aws::String& value) { m_secretHasBeenSet = true; m_secret = value; } inline void SetSecret(Aws::String&& value) { m_secretHasBeenSet = true; m_secret = std::move(value); } inline void SetSecret(const char* value) { m_secretHasBeenSet = true; m_secret.assign(value); } inline InstanceCredentials& WithSecret(const Aws::String& value) { SetSecret(value); return *this;} inline InstanceCredentials& WithSecret(Aws::String&& value) { SetSecret(std::move(value)); return *this;} 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