/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lambda { namespace Model { /** *

Provides configuration information about a Lambda function alias.

See * Also:

AWS * API Reference

*/ class CreateAliasResult { public: AWS_LAMBDA_API CreateAliasResult(); AWS_LAMBDA_API CreateAliasResult(const Aws::AmazonWebServiceResult& result); AWS_LAMBDA_API CreateAliasResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the alias.

*/ inline const Aws::String& GetAliasArn() const{ return m_aliasArn; } /** *

The Amazon Resource Name (ARN) of the alias.

*/ inline void SetAliasArn(const Aws::String& value) { m_aliasArn = value; } /** *

The Amazon Resource Name (ARN) of the alias.

*/ inline void SetAliasArn(Aws::String&& value) { m_aliasArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the alias.

*/ inline void SetAliasArn(const char* value) { m_aliasArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the alias.

*/ inline CreateAliasResult& WithAliasArn(const Aws::String& value) { SetAliasArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the alias.

*/ inline CreateAliasResult& WithAliasArn(Aws::String&& value) { SetAliasArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the alias.

*/ inline CreateAliasResult& WithAliasArn(const char* value) { SetAliasArn(value); return *this;} /** *

The name of the alias.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the alias.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the alias.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the alias.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the alias.

*/ inline CreateAliasResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the alias.

*/ inline CreateAliasResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the alias.

*/ inline CreateAliasResult& WithName(const char* value) { SetName(value); return *this;} /** *

The function version that the alias invokes.

*/ inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; } /** *

The function version that the alias invokes.

*/ inline void SetFunctionVersion(const Aws::String& value) { m_functionVersion = value; } /** *

The function version that the alias invokes.

*/ inline void SetFunctionVersion(Aws::String&& value) { m_functionVersion = std::move(value); } /** *

The function version that the alias invokes.

*/ inline void SetFunctionVersion(const char* value) { m_functionVersion.assign(value); } /** *

The function version that the alias invokes.

*/ inline CreateAliasResult& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;} /** *

The function version that the alias invokes.

*/ inline CreateAliasResult& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;} /** *

The function version that the alias invokes.

*/ inline CreateAliasResult& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;} /** *

A description of the alias.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the alias.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

A description of the alias.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

A description of the alias.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

A description of the alias.

*/ inline CreateAliasResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the alias.

*/ inline CreateAliasResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the alias.

*/ inline CreateAliasResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The routing * configuration of the alias.

*/ inline const AliasRoutingConfiguration& GetRoutingConfig() const{ return m_routingConfig; } /** *

The routing * configuration of the alias.

*/ inline void SetRoutingConfig(const AliasRoutingConfiguration& value) { m_routingConfig = value; } /** *

The routing * configuration of the alias.

*/ inline void SetRoutingConfig(AliasRoutingConfiguration&& value) { m_routingConfig = std::move(value); } /** *

The routing * configuration of the alias.

*/ inline CreateAliasResult& WithRoutingConfig(const AliasRoutingConfiguration& value) { SetRoutingConfig(value); return *this;} /** *

The routing * configuration of the alias.

*/ inline CreateAliasResult& WithRoutingConfig(AliasRoutingConfiguration&& value) { SetRoutingConfig(std::move(value)); return *this;} /** *

A unique identifier that changes when you update the alias.

*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *

A unique identifier that changes when you update the alias.

*/ inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; } /** *

A unique identifier that changes when you update the alias.

*/ inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); } /** *

A unique identifier that changes when you update the alias.

*/ inline void SetRevisionId(const char* value) { m_revisionId.assign(value); } /** *

A unique identifier that changes when you update the alias.

*/ inline CreateAliasResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *

A unique identifier that changes when you update the alias.

*/ inline CreateAliasResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *

A unique identifier that changes when you update the alias.

*/ inline CreateAliasResult& WithRevisionId(const char* value) { SetRevisionId(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 CreateAliasResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateAliasResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateAliasResult& WithRequestId(const char* value) { SetRequestId(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; Aws::String m_requestId; }; } // namespace Model } // namespace Lambda } // namespace Aws