/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Amazon Web Services account security credentials that allow interactions with
* Amazon GameLift resources. The credentials are temporary and valid for a limited
* time span. You can request fresh credentials at any time. Amazon Web
* Services security credentials consist of three parts: an access key ID, a secret
* access key, and a session token. You must use all three parts together to
* authenticate your access requests. You need Amazon Web Services
* credentials for the following tasks: To upload a game server
* build directly to Amazon GameLift S3 storage using To remotely connect to an active Amazon GameLift fleet instances. To get
* remote access, call GetComputeAccess.
CreateBuild. To
* get access for this task, call RequestUploadCredentials.See
* Also:
AWS
* API Reference
The access key ID that identifies the temporary security credentials.
*/ inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; } inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; } inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; } inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); } inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); } inline AwsCredentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;} inline AwsCredentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;} inline AwsCredentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;} ///@} ///@{ /** *The secret access key that can be used to sign requests.
*/ inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; } inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; } inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; } inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); } inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); } inline AwsCredentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;} inline AwsCredentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;} inline AwsCredentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;} ///@} ///@{ /** *The token that users must pass to the service API to use the temporary * credentials.
*/ inline const Aws::String& GetSessionToken() const{ return m_sessionToken; } inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; } inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; } inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); } inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); } inline AwsCredentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;} inline AwsCredentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;} inline AwsCredentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;} ///@} private: Aws::String m_accessKeyId; bool m_accessKeyIdHasBeenSet = false; Aws::String m_secretAccessKey; bool m_secretAccessKeyHasBeenSet = false; Aws::String m_sessionToken; bool m_sessionTokenHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws