276 lines
8.5 KiB
C++
276 lines
8.5 KiB
C++
/**
|
|
* 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/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/lambda/model/AliasRoutingConfiguration.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
|
|
{
|
|
/**
|
|
* <p>Provides configuration information about a Lambda function <a
|
|
* href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a>.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasConfiguration">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_LAMBDA_API UpdateAliasResult
|
|
{
|
|
public:
|
|
UpdateAliasResult();
|
|
UpdateAliasResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
UpdateAliasResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the alias.</p>
|
|
*/
|
|
inline const Aws::String& GetAliasArn() const{ return m_aliasArn; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the alias.</p>
|
|
*/
|
|
inline void SetAliasArn(const Aws::String& value) { m_aliasArn = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the alias.</p>
|
|
*/
|
|
inline void SetAliasArn(Aws::String&& value) { m_aliasArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the alias.</p>
|
|
*/
|
|
inline void SetAliasArn(const char* value) { m_aliasArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithAliasArn(const Aws::String& value) { SetAliasArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithAliasArn(Aws::String&& value) { SetAliasArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithAliasArn(const char* value) { SetAliasArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the alias.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The name of the alias.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_name = value; }
|
|
|
|
/**
|
|
* <p>The name of the alias.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the alias.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The function version that the alias invokes.</p>
|
|
*/
|
|
inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
|
|
|
|
/**
|
|
* <p>The function version that the alias invokes.</p>
|
|
*/
|
|
inline void SetFunctionVersion(const Aws::String& value) { m_functionVersion = value; }
|
|
|
|
/**
|
|
* <p>The function version that the alias invokes.</p>
|
|
*/
|
|
inline void SetFunctionVersion(Aws::String&& value) { m_functionVersion = std::move(value); }
|
|
|
|
/**
|
|
* <p>The function version that the alias invokes.</p>
|
|
*/
|
|
inline void SetFunctionVersion(const char* value) { m_functionVersion.assign(value); }
|
|
|
|
/**
|
|
* <p>The function version that the alias invokes.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
|
|
|
|
/**
|
|
* <p>The function version that the alias invokes.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The function version that the alias invokes.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A description of the alias.</p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p>A description of the alias.</p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_description = value; }
|
|
|
|
/**
|
|
* <p>A description of the alias.</p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>A description of the alias.</p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>A description of the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>A description of the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A description of the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The <a
|
|
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">routing
|
|
* configuration</a> of the alias.</p>
|
|
*/
|
|
inline const AliasRoutingConfiguration& GetRoutingConfig() const{ return m_routingConfig; }
|
|
|
|
/**
|
|
* <p>The <a
|
|
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">routing
|
|
* configuration</a> of the alias.</p>
|
|
*/
|
|
inline void SetRoutingConfig(const AliasRoutingConfiguration& value) { m_routingConfig = value; }
|
|
|
|
/**
|
|
* <p>The <a
|
|
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">routing
|
|
* configuration</a> of the alias.</p>
|
|
*/
|
|
inline void SetRoutingConfig(AliasRoutingConfiguration&& value) { m_routingConfig = std::move(value); }
|
|
|
|
/**
|
|
* <p>The <a
|
|
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">routing
|
|
* configuration</a> of the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithRoutingConfig(const AliasRoutingConfiguration& value) { SetRoutingConfig(value); return *this;}
|
|
|
|
/**
|
|
* <p>The <a
|
|
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">routing
|
|
* configuration</a> of the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithRoutingConfig(AliasRoutingConfiguration&& value) { SetRoutingConfig(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A unique identifier that changes when you update the alias.</p>
|
|
*/
|
|
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
|
|
|
/**
|
|
* <p>A unique identifier that changes when you update the alias.</p>
|
|
*/
|
|
inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; }
|
|
|
|
/**
|
|
* <p>A unique identifier that changes when you update the alias.</p>
|
|
*/
|
|
inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); }
|
|
|
|
/**
|
|
* <p>A unique identifier that changes when you update the alias.</p>
|
|
*/
|
|
inline void SetRevisionId(const char* value) { m_revisionId.assign(value); }
|
|
|
|
/**
|
|
* <p>A unique identifier that changes when you update the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
|
|
|
/**
|
|
* <p>A unique identifier that changes when you update the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A unique identifier that changes when you update the alias.</p>
|
|
*/
|
|
inline UpdateAliasResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_aliasArn;
|
|
|
|
Aws::String m_name;
|
|
|
|
Aws::String m_functionVersion;
|
|
|
|
Aws::String m_description;
|
|
|
|
AliasRoutingConfiguration m_routingConfig;
|
|
|
|
Aws::String m_revisionId;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Lambda
|
|
} // namespace Aws
|