Lesson 35 - Get Compute Auth Token Working
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
/**
|
||||
* 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/Build.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 CreateBuildResult
|
||||
{
|
||||
public:
|
||||
AWS_GAMELIFT_API CreateBuildResult();
|
||||
AWS_GAMELIFT_API CreateBuildResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_GAMELIFT_API CreateBuildResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The newly created build resource, including a unique build IDs and status.
|
||||
* </p>
|
||||
*/
|
||||
inline const Build& GetBuild() const{ return m_build; }
|
||||
inline void SetBuild(const Build& value) { m_build = value; }
|
||||
inline void SetBuild(Build&& value) { m_build = std::move(value); }
|
||||
inline CreateBuildResult& WithBuild(const Build& value) { SetBuild(value); return *this;}
|
||||
inline CreateBuildResult& WithBuild(Build&& value) { SetBuild(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>This element is returned only when the operation is called without a storage
|
||||
* location. It contains credentials to use when you are uploading a build file to
|
||||
* an Amazon S3 bucket that is owned by Amazon GameLift. Credentials have a limited
|
||||
* life span. To refresh these credentials, call <a
|
||||
* href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_RequestUploadCredentials.html">RequestUploadCredentials</a>.
|
||||
* </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 CreateBuildResult& WithUploadCredentials(const AwsCredentials& value) { SetUploadCredentials(value); return *this;}
|
||||
inline CreateBuildResult& WithUploadCredentials(AwsCredentials&& value) { SetUploadCredentials(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Amazon S3 location for your game build file, including bucket name and
|
||||
* key.</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 CreateBuildResult& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
|
||||
inline CreateBuildResult& 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 CreateBuildResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline CreateBuildResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline CreateBuildResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Build m_build;
|
||||
|
||||
AwsCredentials m_uploadCredentials;
|
||||
|
||||
S3Location m_storageLocation;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace GameLift
|
||||
} // namespace Aws
|
||||
Reference in New Issue
Block a user