com.pulumi.azurenative.web.outputs.GetWebAppSiteContainerResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.web.outputs;
import com.pulumi.azurenative.web.outputs.EnvironmentVariableResponse;
import com.pulumi.azurenative.web.outputs.VolumeMountResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetWebAppSiteContainerResult {
/**
* @return Auth Type
*
*/
private @Nullable String authType;
/**
* @return Created Time
*
*/
private String createdTime;
/**
* @return List of environment variables
*
*/
private @Nullable List environmentVariables;
/**
* @return Resource Id.
*
*/
private String id;
/**
* @return Image Name
*
*/
private String image;
/**
* @return <code>true</code> if the container is the main site container; <code>false</code> otherwise.
*
*/
private Boolean isMain;
/**
* @return Kind of resource.
*
*/
private @Nullable String kind;
/**
* @return Last Modified Time
*
*/
private String lastModifiedTime;
/**
* @return Resource Name.
*
*/
private String name;
/**
* @return Password Secret
*
*/
private @Nullable String passwordSecret;
/**
* @return StartUp Command
*
*/
private @Nullable String startUpCommand;
/**
* @return Target Port
*
*/
private @Nullable String targetPort;
/**
* @return Resource type.
*
*/
private String type;
/**
* @return UserManagedIdentity ClientId
*
*/
private @Nullable String userManagedIdentityClientId;
/**
* @return User Name
*
*/
private @Nullable String userName;
/**
* @return List of volume mounts
*
*/
private @Nullable List volumeMounts;
private GetWebAppSiteContainerResult() {}
/**
* @return Auth Type
*
*/
public Optional authType() {
return Optional.ofNullable(this.authType);
}
/**
* @return Created Time
*
*/
public String createdTime() {
return this.createdTime;
}
/**
* @return List of environment variables
*
*/
public List environmentVariables() {
return this.environmentVariables == null ? List.of() : this.environmentVariables;
}
/**
* @return Resource Id.
*
*/
public String id() {
return this.id;
}
/**
* @return Image Name
*
*/
public String image() {
return this.image;
}
/**
* @return <code>true</code> if the container is the main site container; <code>false</code> otherwise.
*
*/
public Boolean isMain() {
return this.isMain;
}
/**
* @return Kind of resource.
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return Last Modified Time
*
*/
public String lastModifiedTime() {
return this.lastModifiedTime;
}
/**
* @return Resource Name.
*
*/
public String name() {
return this.name;
}
/**
* @return Password Secret
*
*/
public Optional passwordSecret() {
return Optional.ofNullable(this.passwordSecret);
}
/**
* @return StartUp Command
*
*/
public Optional startUpCommand() {
return Optional.ofNullable(this.startUpCommand);
}
/**
* @return Target Port
*
*/
public Optional targetPort() {
return Optional.ofNullable(this.targetPort);
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
/**
* @return UserManagedIdentity ClientId
*
*/
public Optional userManagedIdentityClientId() {
return Optional.ofNullable(this.userManagedIdentityClientId);
}
/**
* @return User Name
*
*/
public Optional userName() {
return Optional.ofNullable(this.userName);
}
/**
* @return List of volume mounts
*
*/
public List volumeMounts() {
return this.volumeMounts == null ? List.of() : this.volumeMounts;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetWebAppSiteContainerResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String authType;
private String createdTime;
private @Nullable List environmentVariables;
private String id;
private String image;
private Boolean isMain;
private @Nullable String kind;
private String lastModifiedTime;
private String name;
private @Nullable String passwordSecret;
private @Nullable String startUpCommand;
private @Nullable String targetPort;
private String type;
private @Nullable String userManagedIdentityClientId;
private @Nullable String userName;
private @Nullable List volumeMounts;
public Builder() {}
public Builder(GetWebAppSiteContainerResult defaults) {
Objects.requireNonNull(defaults);
this.authType = defaults.authType;
this.createdTime = defaults.createdTime;
this.environmentVariables = defaults.environmentVariables;
this.id = defaults.id;
this.image = defaults.image;
this.isMain = defaults.isMain;
this.kind = defaults.kind;
this.lastModifiedTime = defaults.lastModifiedTime;
this.name = defaults.name;
this.passwordSecret = defaults.passwordSecret;
this.startUpCommand = defaults.startUpCommand;
this.targetPort = defaults.targetPort;
this.type = defaults.type;
this.userManagedIdentityClientId = defaults.userManagedIdentityClientId;
this.userName = defaults.userName;
this.volumeMounts = defaults.volumeMounts;
}
@CustomType.Setter
public Builder authType(@Nullable String authType) {
this.authType = authType;
return this;
}
@CustomType.Setter
public Builder createdTime(String createdTime) {
if (createdTime == null) {
throw new MissingRequiredPropertyException("GetWebAppSiteContainerResult", "createdTime");
}
this.createdTime = createdTime;
return this;
}
@CustomType.Setter
public Builder environmentVariables(@Nullable List environmentVariables) {
this.environmentVariables = environmentVariables;
return this;
}
public Builder environmentVariables(EnvironmentVariableResponse... environmentVariables) {
return environmentVariables(List.of(environmentVariables));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetWebAppSiteContainerResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder image(String image) {
if (image == null) {
throw new MissingRequiredPropertyException("GetWebAppSiteContainerResult", "image");
}
this.image = image;
return this;
}
@CustomType.Setter
public Builder isMain(Boolean isMain) {
if (isMain == null) {
throw new MissingRequiredPropertyException("GetWebAppSiteContainerResult", "isMain");
}
this.isMain = isMain;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder lastModifiedTime(String lastModifiedTime) {
if (lastModifiedTime == null) {
throw new MissingRequiredPropertyException("GetWebAppSiteContainerResult", "lastModifiedTime");
}
this.lastModifiedTime = lastModifiedTime;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetWebAppSiteContainerResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder passwordSecret(@Nullable String passwordSecret) {
this.passwordSecret = passwordSecret;
return this;
}
@CustomType.Setter
public Builder startUpCommand(@Nullable String startUpCommand) {
this.startUpCommand = startUpCommand;
return this;
}
@CustomType.Setter
public Builder targetPort(@Nullable String targetPort) {
this.targetPort = targetPort;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetWebAppSiteContainerResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder userManagedIdentityClientId(@Nullable String userManagedIdentityClientId) {
this.userManagedIdentityClientId = userManagedIdentityClientId;
return this;
}
@CustomType.Setter
public Builder userName(@Nullable String userName) {
this.userName = userName;
return this;
}
@CustomType.Setter
public Builder volumeMounts(@Nullable List volumeMounts) {
this.volumeMounts = volumeMounts;
return this;
}
public Builder volumeMounts(VolumeMountResponse... volumeMounts) {
return volumeMounts(List.of(volumeMounts));
}
public GetWebAppSiteContainerResult build() {
final var _resultValue = new GetWebAppSiteContainerResult();
_resultValue.authType = authType;
_resultValue.createdTime = createdTime;
_resultValue.environmentVariables = environmentVariables;
_resultValue.id = id;
_resultValue.image = image;
_resultValue.isMain = isMain;
_resultValue.kind = kind;
_resultValue.lastModifiedTime = lastModifiedTime;
_resultValue.name = name;
_resultValue.passwordSecret = passwordSecret;
_resultValue.startUpCommand = startUpCommand;
_resultValue.targetPort = targetPort;
_resultValue.type = type;
_resultValue.userManagedIdentityClientId = userManagedIdentityClientId;
_resultValue.userName = userName;
_resultValue.volumeMounts = volumeMounts;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy