/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace GameLift { namespace Model { class GetComputeAuthTokenResult { public: AWS_GAMELIFT_API GetComputeAuthTokenResult(); AWS_GAMELIFT_API GetComputeAuthTokenResult(const Aws::AmazonWebServiceResult& result); AWS_GAMELIFT_API GetComputeAuthTokenResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A unique identifier for the fleet that the compute is registered to.

*/ inline const Aws::String& GetFleetId() const{ return m_fleetId; } /** *

A unique identifier for the fleet that the compute is registered to.

*/ inline void SetFleetId(const Aws::String& value) { m_fleetId = value; } /** *

A unique identifier for the fleet that the compute is registered to.

*/ inline void SetFleetId(Aws::String&& value) { m_fleetId = std::move(value); } /** *

A unique identifier for the fleet that the compute is registered to.

*/ inline void SetFleetId(const char* value) { m_fleetId.assign(value); } /** *

A unique identifier for the fleet that the compute is registered to.

*/ inline GetComputeAuthTokenResult& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;} /** *

A unique identifier for the fleet that the compute is registered to.

*/ inline GetComputeAuthTokenResult& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;} /** *

A unique identifier for the fleet that the compute is registered to.

*/ inline GetComputeAuthTokenResult& WithFleetId(const char* value) { SetFleetId(value); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline const Aws::String& GetFleetArn() const{ return m_fleetArn; } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline void SetFleetArn(const Aws::String& value) { m_fleetArn = value; } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline void SetFleetArn(Aws::String&& value) { m_fleetArn = std::move(value); } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline void SetFleetArn(const char* value) { m_fleetArn.assign(value); } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline GetComputeAuthTokenResult& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline GetComputeAuthTokenResult& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline GetComputeAuthTokenResult& WithFleetArn(const char* value) { SetFleetArn(value); return *this;} /** *

The name of the compute resource you are requesting the authentication token * for.

*/ inline const Aws::String& GetComputeName() const{ return m_computeName; } /** *

The name of the compute resource you are requesting the authentication token * for.

*/ inline void SetComputeName(const Aws::String& value) { m_computeName = value; } /** *

The name of the compute resource you are requesting the authentication token * for.

*/ inline void SetComputeName(Aws::String&& value) { m_computeName = std::move(value); } /** *

The name of the compute resource you are requesting the authentication token * for.

*/ inline void SetComputeName(const char* value) { m_computeName.assign(value); } /** *

The name of the compute resource you are requesting the authentication token * for.

*/ inline GetComputeAuthTokenResult& WithComputeName(const Aws::String& value) { SetComputeName(value); return *this;} /** *

The name of the compute resource you are requesting the authentication token * for.

*/ inline GetComputeAuthTokenResult& WithComputeName(Aws::String&& value) { SetComputeName(std::move(value)); return *this;} /** *

The name of the compute resource you are requesting the authentication token * for.

*/ inline GetComputeAuthTokenResult& WithComputeName(const char* value) { SetComputeName(value); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift compute resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 *

*/ inline const Aws::String& GetComputeArn() const{ return m_computeArn; } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift compute resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 *

*/ inline void SetComputeArn(const Aws::String& value) { m_computeArn = value; } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift compute resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 *

*/ inline void SetComputeArn(Aws::String&& value) { m_computeArn = std::move(value); } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift compute resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 *

*/ inline void SetComputeArn(const char* value) { m_computeArn.assign(value); } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift compute resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 *

*/ inline GetComputeAuthTokenResult& WithComputeArn(const Aws::String& value) { SetComputeArn(value); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift compute resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 *

*/ inline GetComputeAuthTokenResult& WithComputeArn(Aws::String&& value) { SetComputeArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift compute resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912 *

*/ inline GetComputeAuthTokenResult& WithComputeArn(const char* value) { SetComputeArn(value); return *this;} /** *

The authentication token that your game server uses to authenticate with * Amazon GameLift.

*/ inline const Aws::String& GetAuthToken() const{ return m_authToken; } /** *

The authentication token that your game server uses to authenticate with * Amazon GameLift.

*/ inline void SetAuthToken(const Aws::String& value) { m_authToken = value; } /** *

The authentication token that your game server uses to authenticate with * Amazon GameLift.

*/ inline void SetAuthToken(Aws::String&& value) { m_authToken = std::move(value); } /** *

The authentication token that your game server uses to authenticate with * Amazon GameLift.

*/ inline void SetAuthToken(const char* value) { m_authToken.assign(value); } /** *

The authentication token that your game server uses to authenticate with * Amazon GameLift.

*/ inline GetComputeAuthTokenResult& WithAuthToken(const Aws::String& value) { SetAuthToken(value); return *this;} /** *

The authentication token that your game server uses to authenticate with * Amazon GameLift.

*/ inline GetComputeAuthTokenResult& WithAuthToken(Aws::String&& value) { SetAuthToken(std::move(value)); return *this;} /** *

The authentication token that your game server uses to authenticate with * Amazon GameLift.

*/ inline GetComputeAuthTokenResult& WithAuthToken(const char* value) { SetAuthToken(value); return *this;} /** *

The amount of time until the authentication token is no longer valid. To * continue using the compute resource for game server hosting, renew the * authentication token by using this operation again.

*/ inline const Aws::Utils::DateTime& GetExpirationTimestamp() const{ return m_expirationTimestamp; } /** *

The amount of time until the authentication token is no longer valid. To * continue using the compute resource for game server hosting, renew the * authentication token by using this operation again.

*/ inline void SetExpirationTimestamp(const Aws::Utils::DateTime& value) { m_expirationTimestamp = value; } /** *

The amount of time until the authentication token is no longer valid. To * continue using the compute resource for game server hosting, renew the * authentication token by using this operation again.

*/ inline void SetExpirationTimestamp(Aws::Utils::DateTime&& value) { m_expirationTimestamp = std::move(value); } /** *

The amount of time until the authentication token is no longer valid. To * continue using the compute resource for game server hosting, renew the * authentication token by using this operation again.

*/ inline GetComputeAuthTokenResult& WithExpirationTimestamp(const Aws::Utils::DateTime& value) { SetExpirationTimestamp(value); return *this;} /** *

The amount of time until the authentication token is no longer valid. To * continue using the compute resource for game server hosting, renew the * authentication token by using this operation again.

*/ inline GetComputeAuthTokenResult& WithExpirationTimestamp(Aws::Utils::DateTime&& value) { SetExpirationTimestamp(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetComputeAuthTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetComputeAuthTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetComputeAuthTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_fleetId; Aws::String m_fleetArn; Aws::String m_computeName; Aws::String m_computeArn; Aws::String m_authToken; Aws::Utils::DateTime m_expirationTimestamp; Aws::String m_requestId; }; } // namespace Model } // namespace GameLift } // namespace Aws