Lesson 35 - Get Compute Auth Token Working

This commit is contained in:
Norman Lansing
2026-02-28 12:32:28 -05:00
parent 1d477ee42a
commit 4fde462bce
7743 changed files with 1397833 additions and 18 deletions

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/gamelift/GameLift_EXPORTS.h>
#include <aws/gamelift/model/AwsCredentials.h>
#include <aws/gamelift/model/S3Location.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace GameLift
{
namespace Model
{
class RequestUploadCredentialsResult
{
public:
AWS_GAMELIFT_API RequestUploadCredentialsResult();
AWS_GAMELIFT_API RequestUploadCredentialsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AWS_GAMELIFT_API RequestUploadCredentialsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
///@{
/**
* <p>Amazon Web Services credentials required when uploading a game build to the
* storage location. These credentials have a limited lifespan and are valid only
* for the build they were issued for.</p>
*/
inline const AwsCredentials& GetUploadCredentials() const{ return m_uploadCredentials; }
inline void SetUploadCredentials(const AwsCredentials& value) { m_uploadCredentials = value; }
inline void SetUploadCredentials(AwsCredentials&& value) { m_uploadCredentials = std::move(value); }
inline RequestUploadCredentialsResult& WithUploadCredentials(const AwsCredentials& value) { SetUploadCredentials(value); return *this;}
inline RequestUploadCredentialsResult& WithUploadCredentials(AwsCredentials&& value) { SetUploadCredentials(std::move(value)); return *this;}
///@}
///@{
/**
* <p>Amazon S3 path and key, identifying where the game build files are
* stored.</p>
*/
inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
inline void SetStorageLocation(const S3Location& value) { m_storageLocation = value; }
inline void SetStorageLocation(S3Location&& value) { m_storageLocation = std::move(value); }
inline RequestUploadCredentialsResult& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
inline RequestUploadCredentialsResult& WithStorageLocation(S3Location&& value) { SetStorageLocation(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 RequestUploadCredentialsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
inline RequestUploadCredentialsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
inline RequestUploadCredentialsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
///@}
private:
AwsCredentials m_uploadCredentials;
S3Location m_storageLocation;
Aws::String m_requestId;
};
} // namespace Model
} // namespace GameLift
} // namespace Aws