Lesson 35 - Get Compute Auth Token Working
This commit is contained in:
@@ -0,0 +1,135 @@
|
||||
/**
|
||||
* 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/FunctionConfiguration.h>
|
||||
#include <aws/lambda/model/FunctionCodeLocation.h>
|
||||
#include <aws/core/utils/memory/stl/AWSMap.h>
|
||||
#include <aws/lambda/model/TagsError.h>
|
||||
#include <aws/lambda/model/Concurrency.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 GetFunctionResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionResult();
|
||||
AWS_LAMBDA_API GetFunctionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetFunctionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The configuration of the function or version.</p>
|
||||
*/
|
||||
inline const FunctionConfiguration& GetConfiguration() const{ return m_configuration; }
|
||||
inline void SetConfiguration(const FunctionConfiguration& value) { m_configuration = value; }
|
||||
inline void SetConfiguration(FunctionConfiguration&& value) { m_configuration = std::move(value); }
|
||||
inline GetFunctionResult& WithConfiguration(const FunctionConfiguration& value) { SetConfiguration(value); return *this;}
|
||||
inline GetFunctionResult& WithConfiguration(FunctionConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The deployment package of the function or version.</p>
|
||||
*/
|
||||
inline const FunctionCodeLocation& GetCode() const{ return m_code; }
|
||||
inline void SetCode(const FunctionCodeLocation& value) { m_code = value; }
|
||||
inline void SetCode(FunctionCodeLocation&& value) { m_code = std::move(value); }
|
||||
inline GetFunctionResult& WithCode(const FunctionCodeLocation& value) { SetCode(value); return *this;}
|
||||
inline GetFunctionResult& WithCode(FunctionCodeLocation&& value) { SetCode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>.
|
||||
* Lambda returns tag data only if you have explicit allow permissions for <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/api/API_ListTags.html">lambda:ListTags</a>.</p>
|
||||
*/
|
||||
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
|
||||
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
|
||||
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
|
||||
inline GetFunctionResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
|
||||
inline GetFunctionResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
|
||||
inline GetFunctionResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
|
||||
inline GetFunctionResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
|
||||
inline GetFunctionResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
|
||||
inline GetFunctionResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
|
||||
inline GetFunctionResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
|
||||
inline GetFunctionResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
|
||||
inline GetFunctionResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that contains details about an error related to retrieving
|
||||
* tags.</p>
|
||||
*/
|
||||
inline const TagsError& GetTagsError() const{ return m_tagsError; }
|
||||
inline void SetTagsError(const TagsError& value) { m_tagsError = value; }
|
||||
inline void SetTagsError(TagsError&& value) { m_tagsError = std::move(value); }
|
||||
inline GetFunctionResult& WithTagsError(const TagsError& value) { SetTagsError(value); return *this;}
|
||||
inline GetFunctionResult& WithTagsError(TagsError&& value) { SetTagsError(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html">reserved
|
||||
* concurrency</a>.</p>
|
||||
*/
|
||||
inline const Concurrency& GetConcurrency() const{ return m_concurrency; }
|
||||
inline void SetConcurrency(const Concurrency& value) { m_concurrency = value; }
|
||||
inline void SetConcurrency(Concurrency&& value) { m_concurrency = std::move(value); }
|
||||
inline GetFunctionResult& WithConcurrency(const Concurrency& value) { SetConcurrency(value); return *this;}
|
||||
inline GetFunctionResult& WithConcurrency(Concurrency&& value) { SetConcurrency(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 GetFunctionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetFunctionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetFunctionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
FunctionConfiguration m_configuration;
|
||||
|
||||
FunctionCodeLocation m_code;
|
||||
|
||||
Aws::Map<Aws::String, Aws::String> m_tags;
|
||||
|
||||
TagsError m_tagsError;
|
||||
|
||||
Concurrency m_concurrency;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
Reference in New Issue
Block a user