com.pulumi.alicloud.eci.outputs.ImageCacheImageRegistryCredential Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.eci.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ImageCacheImageRegistryCredential {
/**
* @return The password of the Image Registry.
*
*/
private @Nullable String password;
/**
* @return The address of Image Registry without `http://` or `https://`.
*
*/
private @Nullable String server;
/**
* @return The user name of Image Registry.
*
*/
private @Nullable String userName;
private ImageCacheImageRegistryCredential() {}
/**
* @return The password of the Image Registry.
*
*/
public Optional password() {
return Optional.ofNullable(this.password);
}
/**
* @return The address of Image Registry without `http://` or `https://`.
*
*/
public Optional server() {
return Optional.ofNullable(this.server);
}
/**
* @return The user name of Image Registry.
*
*/
public Optional userName() {
return Optional.ofNullable(this.userName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ImageCacheImageRegistryCredential defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String password;
private @Nullable String server;
private @Nullable String userName;
public Builder() {}
public Builder(ImageCacheImageRegistryCredential defaults) {
Objects.requireNonNull(defaults);
this.password = defaults.password;
this.server = defaults.server;
this.userName = defaults.userName;
}
@CustomType.Setter
public Builder password(@Nullable String password) {
this.password = password;
return this;
}
@CustomType.Setter
public Builder server(@Nullable String server) {
this.server = server;
return this;
}
@CustomType.Setter
public Builder userName(@Nullable String userName) {
this.userName = userName;
return this;
}
public ImageCacheImageRegistryCredential build() {
final var _resultValue = new ImageCacheImageRegistryCredential();
_resultValue.password = password;
_resultValue.server = server;
_resultValue.userName = userName;
return _resultValue;
}
}
}