com.pulumi.azure.batch.outputs.PoolStartTaskContainerRegistry 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.batch.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PoolStartTaskContainerRegistry {
private @Nullable String password;
/**
* @return The container registry URL. Changing this forces a new resource to be created.
*
*/
private String registryServer;
/**
* @return The User Assigned Identity to use for Container Registry access.
*
*/
private @Nullable String userAssignedIdentityId;
private @Nullable String userName;
private PoolStartTaskContainerRegistry() {}
public Optional password() {
return Optional.ofNullable(this.password);
}
/**
* @return The container registry URL. Changing this forces a new resource to be created.
*
*/
public String registryServer() {
return this.registryServer;
}
/**
* @return The User Assigned Identity to use for Container Registry access.
*
*/
public Optional userAssignedIdentityId() {
return Optional.ofNullable(this.userAssignedIdentityId);
}
public Optional userName() {
return Optional.ofNullable(this.userName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PoolStartTaskContainerRegistry defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String password;
private String registryServer;
private @Nullable String userAssignedIdentityId;
private @Nullable String userName;
public Builder() {}
public Builder(PoolStartTaskContainerRegistry defaults) {
Objects.requireNonNull(defaults);
this.password = defaults.password;
this.registryServer = defaults.registryServer;
this.userAssignedIdentityId = defaults.userAssignedIdentityId;
this.userName = defaults.userName;
}
@CustomType.Setter
public Builder password(@Nullable String password) {
this.password = password;
return this;
}
@CustomType.Setter
public Builder registryServer(String registryServer) {
if (registryServer == null) {
throw new MissingRequiredPropertyException("PoolStartTaskContainerRegistry", "registryServer");
}
this.registryServer = registryServer;
return this;
}
@CustomType.Setter
public Builder userAssignedIdentityId(@Nullable String userAssignedIdentityId) {
this.userAssignedIdentityId = userAssignedIdentityId;
return this;
}
@CustomType.Setter
public Builder userName(@Nullable String userName) {
this.userName = userName;
return this;
}
public PoolStartTaskContainerRegistry build() {
final var _resultValue = new PoolStartTaskContainerRegistry();
_resultValue.password = password;
_resultValue.registryServer = registryServer;
_resultValue.userAssignedIdentityId = userAssignedIdentityId;
_resultValue.userName = userName;
return _resultValue;
}
}
}