com.pulumi.azure.containerapp.outputs.GetAppDapr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.containerapp.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetAppDapr {
/**
* @return The Dapr Application Identifier.
*
*/
private String appId;
/**
* @return The port which the application is listening on. This is the same as the `ingress` port.
*
*/
private Integer appPort;
/**
* @return The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`.
*
*/
private String appProtocol;
private GetAppDapr() {}
/**
* @return The Dapr Application Identifier.
*
*/
public String appId() {
return this.appId;
}
/**
* @return The port which the application is listening on. This is the same as the `ingress` port.
*
*/
public Integer appPort() {
return this.appPort;
}
/**
* @return The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`.
*
*/
public String appProtocol() {
return this.appProtocol;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAppDapr defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String appId;
private Integer appPort;
private String appProtocol;
public Builder() {}
public Builder(GetAppDapr defaults) {
Objects.requireNonNull(defaults);
this.appId = defaults.appId;
this.appPort = defaults.appPort;
this.appProtocol = defaults.appProtocol;
}
@CustomType.Setter
public Builder appId(String appId) {
if (appId == null) {
throw new MissingRequiredPropertyException("GetAppDapr", "appId");
}
this.appId = appId;
return this;
}
@CustomType.Setter
public Builder appPort(Integer appPort) {
if (appPort == null) {
throw new MissingRequiredPropertyException("GetAppDapr", "appPort");
}
this.appPort = appPort;
return this;
}
@CustomType.Setter
public Builder appProtocol(String appProtocol) {
if (appProtocol == null) {
throw new MissingRequiredPropertyException("GetAppDapr", "appProtocol");
}
this.appProtocol = appProtocol;
return this;
}
public GetAppDapr build() {
final var _resultValue = new GetAppDapr();
_resultValue.appId = appId;
_resultValue.appPort = appPort;
_resultValue.appProtocol = appProtocol;
return _resultValue;
}
}
}