This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-lambda/include/aws/lambda/model/AliasConfiguration.h

314 lines
10 KiB
C
Raw Normal View History

/**
* 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
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // 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 AliasConfiguration
{
public:
AliasConfiguration();
AliasConfiguration(Aws::Utils::Json::JsonView jsonValue);
AliasConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <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 bool AliasArnHasBeenSet() const { return m_aliasArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the alias.</p>
*/
inline void SetAliasArn(const Aws::String& value) { m_aliasArnHasBeenSet = true; m_aliasArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the alias.</p>
*/
inline void SetAliasArn(Aws::String&& value) { m_aliasArnHasBeenSet = true; m_aliasArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the alias.</p>
*/
inline void SetAliasArn(const char* value) { m_aliasArnHasBeenSet = true; m_aliasArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the alias.</p>
*/
inline AliasConfiguration& WithAliasArn(const Aws::String& value) { SetAliasArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the alias.</p>
*/
inline AliasConfiguration& WithAliasArn(Aws::String&& value) { SetAliasArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the alias.</p>
*/
inline AliasConfiguration& 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 bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the alias.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the alias.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the alias.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the alias.</p>
*/
inline AliasConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the alias.</p>
*/
inline AliasConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the alias.</p>
*/
inline AliasConfiguration& 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 bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
/**
* <p>The function version that the alias invokes.</p>
*/
inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
/**
* <p>The function version that the alias invokes.</p>
*/
inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
/**
* <p>The function version that the alias invokes.</p>
*/
inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
/**
* <p>The function version that the alias invokes.</p>
*/
inline AliasConfiguration& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
/**
* <p>The function version that the alias invokes.</p>
*/
inline AliasConfiguration& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
/**
* <p>The function version that the alias invokes.</p>
*/
inline AliasConfiguration& 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 bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the alias.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the alias.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the alias.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the alias.</p>
*/
inline AliasConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the alias.</p>
*/
inline AliasConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the alias.</p>
*/
inline AliasConfiguration& 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 bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
/**
* <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_routingConfigHasBeenSet = true; 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_routingConfigHasBeenSet = true; 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 AliasConfiguration& 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 AliasConfiguration& 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 bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>A unique identifier that changes when you update the alias.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>A unique identifier that changes when you update the alias.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>A unique identifier that changes when you update the alias.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>A unique identifier that changes when you update the alias.</p>
*/
inline AliasConfiguration& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>A unique identifier that changes when you update the alias.</p>
*/
inline AliasConfiguration& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>A unique identifier that changes when you update the alias.</p>
*/
inline AliasConfiguration& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::String m_aliasArn;
bool m_aliasArnHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_functionVersion;
bool m_functionVersionHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
AliasRoutingConfiguration m_routingConfig;
bool m_routingConfigHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace Lambda
} // namespace Aws