
com.pulumi.azurenative.containerinstance.outputs.ImageRegistryCredentialResponse Maven / Gradle / Ivy
// *** 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.containerinstance.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 ImageRegistryCredentialResponse {
/**
* @return The identity for the private registry.
*
*/
private @Nullable String identity;
/**
* @return The identity URL for the private registry.
*
*/
private @Nullable String identityUrl;
/**
* @return The password for the private registry.
*
*/
private @Nullable String password;
/**
* @return The Docker image registry server without a protocol such as "http" and "https".
*
*/
private String server;
/**
* @return The username for the private registry.
*
*/
private @Nullable String username;
private ImageRegistryCredentialResponse() {}
/**
* @return The identity for the private registry.
*
*/
public Optional identity() {
return Optional.ofNullable(this.identity);
}
/**
* @return The identity URL for the private registry.
*
*/
public Optional identityUrl() {
return Optional.ofNullable(this.identityUrl);
}
/**
* @return The password for the private registry.
*
*/
public Optional password() {
return Optional.ofNullable(this.password);
}
/**
* @return The Docker image registry server without a protocol such as "http" and "https".
*
*/
public String server() {
return this.server;
}
/**
* @return The username for the private registry.
*
*/
public Optional username() {
return Optional.ofNullable(this.username);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ImageRegistryCredentialResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String identity;
private @Nullable String identityUrl;
private @Nullable String password;
private String server;
private @Nullable String username;
public Builder() {}
public Builder(ImageRegistryCredentialResponse defaults) {
Objects.requireNonNull(defaults);
this.identity = defaults.identity;
this.identityUrl = defaults.identityUrl;
this.password = defaults.password;
this.server = defaults.server;
this.username = defaults.username;
}
@CustomType.Setter
public Builder identity(@Nullable String identity) {
this.identity = identity;
return this;
}
@CustomType.Setter
public Builder identityUrl(@Nullable String identityUrl) {
this.identityUrl = identityUrl;
return this;
}
@CustomType.Setter
public Builder password(@Nullable String password) {
this.password = password;
return this;
}
@CustomType.Setter
public Builder server(String server) {
if (server == null) {
throw new MissingRequiredPropertyException("ImageRegistryCredentialResponse", "server");
}
this.server = server;
return this;
}
@CustomType.Setter
public Builder username(@Nullable String username) {
this.username = username;
return this;
}
public ImageRegistryCredentialResponse build() {
final var _resultValue = new ImageRegistryCredentialResponse();
_resultValue.identity = identity;
_resultValue.identityUrl = identityUrl;
_resultValue.password = password;
_resultValue.server = server;
_resultValue.username = username;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy