# JavaAppContainerResourceOptions

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.Java](/reference/api/csharp/communitytoolkit.aspire.hosting.java.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppContainerResourceOptions.cs)

This represents the options entity for configuring a Java application running in a container.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class JavaAppContainerResourceOptions
{
    // ...
}
```

## Constructors

- [JavaAppContainerResourceOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions/constructors.md#constructor)

## Properties

- [Args](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions/properties.md#args) : `string[]?` `get; set` -- Gets or sets the arguments to pass to the Java application.
- [ContainerImageName](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions/properties.md#containerimagename) : `string?` `get; set` -- Gets or sets the container image name.
- [ContainerImageTag](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions/properties.md#containerimagetag) : `string` `get; set` -- Gets or sets the container image tag. Default is `latest`.
- [ContainerRegistry](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions/properties.md#containerregistry) : `string?` `get; set` -- Gets or sets the container registry. Default is `docker.io`.
- [OtelAgentPath](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions/properties.md#otelagentpath) : `string?` `get; set` -- Gets or sets the OpenTelemetry Java Agent path.
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions/properties.md#port) : `int` `get; set` -- Gets or sets the port number. Default is `8080`.
- [TargetPort](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions/properties.md#targetport) : `int` `get; set` -- Gets or sets the target port number. Default is `8080`.
