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

Details about a function's deployment package.

See Also:

AWS * API Reference

*/ class FunctionCodeLocation { public: AWS_LAMBDA_API FunctionCodeLocation(); AWS_LAMBDA_API FunctionCodeLocation(Aws::Utils::Json::JsonView jsonValue); AWS_LAMBDA_API FunctionCodeLocation& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The service that's hosting the file.

*/ inline const Aws::String& GetRepositoryType() const{ return m_repositoryType; } /** *

The service that's hosting the file.

*/ inline bool RepositoryTypeHasBeenSet() const { return m_repositoryTypeHasBeenSet; } /** *

The service that's hosting the file.

*/ inline void SetRepositoryType(const Aws::String& value) { m_repositoryTypeHasBeenSet = true; m_repositoryType = value; } /** *

The service that's hosting the file.

*/ inline void SetRepositoryType(Aws::String&& value) { m_repositoryTypeHasBeenSet = true; m_repositoryType = std::move(value); } /** *

The service that's hosting the file.

*/ inline void SetRepositoryType(const char* value) { m_repositoryTypeHasBeenSet = true; m_repositoryType.assign(value); } /** *

The service that's hosting the file.

*/ inline FunctionCodeLocation& WithRepositoryType(const Aws::String& value) { SetRepositoryType(value); return *this;} /** *

The service that's hosting the file.

*/ inline FunctionCodeLocation& WithRepositoryType(Aws::String&& value) { SetRepositoryType(std::move(value)); return *this;} /** *

The service that's hosting the file.

*/ inline FunctionCodeLocation& WithRepositoryType(const char* value) { SetRepositoryType(value); return *this;} /** *

A presigned URL that you can use to download the deployment package.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

A presigned URL that you can use to download the deployment package.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

A presigned URL that you can use to download the deployment package.

*/ inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } /** *

A presigned URL that you can use to download the deployment package.

*/ inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

A presigned URL that you can use to download the deployment package.

*/ inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } /** *

A presigned URL that you can use to download the deployment package.

*/ inline FunctionCodeLocation& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

A presigned URL that you can use to download the deployment package.

*/ inline FunctionCodeLocation& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

A presigned URL that you can use to download the deployment package.

*/ inline FunctionCodeLocation& WithLocation(const char* value) { SetLocation(value); return *this;} /** *

URI of a container image in the Amazon ECR registry.

*/ inline const Aws::String& GetImageUri() const{ return m_imageUri; } /** *

URI of a container image in the Amazon ECR registry.

*/ inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; } /** *

URI of a container image in the Amazon ECR registry.

*/ inline void SetImageUri(const Aws::String& value) { m_imageUriHasBeenSet = true; m_imageUri = value; } /** *

URI of a container image in the Amazon ECR registry.

*/ inline void SetImageUri(Aws::String&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::move(value); } /** *

URI of a container image in the Amazon ECR registry.

*/ inline void SetImageUri(const char* value) { m_imageUriHasBeenSet = true; m_imageUri.assign(value); } /** *

URI of a container image in the Amazon ECR registry.

*/ inline FunctionCodeLocation& WithImageUri(const Aws::String& value) { SetImageUri(value); return *this;} /** *

URI of a container image in the Amazon ECR registry.

*/ inline FunctionCodeLocation& WithImageUri(Aws::String&& value) { SetImageUri(std::move(value)); return *this;} /** *

URI of a container image in the Amazon ECR registry.

*/ inline FunctionCodeLocation& WithImageUri(const char* value) { SetImageUri(value); return *this;} /** *

The resolved URI for the image.

*/ inline const Aws::String& GetResolvedImageUri() const{ return m_resolvedImageUri; } /** *

The resolved URI for the image.

*/ inline bool ResolvedImageUriHasBeenSet() const { return m_resolvedImageUriHasBeenSet; } /** *

The resolved URI for the image.

*/ inline void SetResolvedImageUri(const Aws::String& value) { m_resolvedImageUriHasBeenSet = true; m_resolvedImageUri = value; } /** *

The resolved URI for the image.

*/ inline void SetResolvedImageUri(Aws::String&& value) { m_resolvedImageUriHasBeenSet = true; m_resolvedImageUri = std::move(value); } /** *

The resolved URI for the image.

*/ inline void SetResolvedImageUri(const char* value) { m_resolvedImageUriHasBeenSet = true; m_resolvedImageUri.assign(value); } /** *

The resolved URI for the image.

*/ inline FunctionCodeLocation& WithResolvedImageUri(const Aws::String& value) { SetResolvedImageUri(value); return *this;} /** *

The resolved URI for the image.

*/ inline FunctionCodeLocation& WithResolvedImageUri(Aws::String&& value) { SetResolvedImageUri(std::move(value)); return *this;} /** *

The resolved URI for the image.

*/ inline FunctionCodeLocation& WithResolvedImageUri(const char* value) { SetResolvedImageUri(value); return *this;} private: Aws::String m_repositoryType; bool m_repositoryTypeHasBeenSet = false; Aws::String m_location; bool m_locationHasBeenSet = false; Aws::String m_imageUri; bool m_imageUriHasBeenSet = false; Aws::String m_resolvedImageUri; bool m_resolvedImageUriHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws