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,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lambda/Lambda_EXPORTS.h>
#include <aws/lambda/model/UpdateRuntimeOn.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 Lambda
{
namespace Model
{
class PutRuntimeManagementConfigResult
{
public:
AWS_LAMBDA_API PutRuntimeManagementConfigResult();
AWS_LAMBDA_API PutRuntimeManagementConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AWS_LAMBDA_API PutRuntimeManagementConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
///@{
/**
* <p>The runtime update mode.</p>
*/
inline const UpdateRuntimeOn& GetUpdateRuntimeOn() const{ return m_updateRuntimeOn; }
inline void SetUpdateRuntimeOn(const UpdateRuntimeOn& value) { m_updateRuntimeOn = value; }
inline void SetUpdateRuntimeOn(UpdateRuntimeOn&& value) { m_updateRuntimeOn = std::move(value); }
inline PutRuntimeManagementConfigResult& WithUpdateRuntimeOn(const UpdateRuntimeOn& value) { SetUpdateRuntimeOn(value); return *this;}
inline PutRuntimeManagementConfigResult& WithUpdateRuntimeOn(UpdateRuntimeOn&& value) { SetUpdateRuntimeOn(std::move(value)); return *this;}
///@}
///@{
/**
* <p>The ARN of the function</p>
*/
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; }
inline void SetFunctionArn(Aws::String&& value) { m_functionArn = std::move(value); }
inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); }
inline PutRuntimeManagementConfigResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
inline PutRuntimeManagementConfigResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
inline PutRuntimeManagementConfigResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
///@}
///@{
/**
* <p>The ARN of the runtime the function is configured to use. If the runtime
* update mode is <b>manual</b>, the ARN is returned, otherwise <code>null</code>
* is returned.</p>
*/
inline const Aws::String& GetRuntimeVersionArn() const{ return m_runtimeVersionArn; }
inline void SetRuntimeVersionArn(const Aws::String& value) { m_runtimeVersionArn = value; }
inline void SetRuntimeVersionArn(Aws::String&& value) { m_runtimeVersionArn = std::move(value); }
inline void SetRuntimeVersionArn(const char* value) { m_runtimeVersionArn.assign(value); }
inline PutRuntimeManagementConfigResult& WithRuntimeVersionArn(const Aws::String& value) { SetRuntimeVersionArn(value); return *this;}
inline PutRuntimeManagementConfigResult& WithRuntimeVersionArn(Aws::String&& value) { SetRuntimeVersionArn(std::move(value)); return *this;}
inline PutRuntimeManagementConfigResult& WithRuntimeVersionArn(const char* value) { SetRuntimeVersionArn(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 PutRuntimeManagementConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
inline PutRuntimeManagementConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
inline PutRuntimeManagementConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
///@}
private:
UpdateRuntimeOn m_updateRuntimeOn;
Aws::String m_functionArn;
Aws::String m_runtimeVersionArn;
Aws::String m_requestId;
};
} // namespace Model
} // namespace Lambda
} // namespace Aws