
com.pulumi.azurenative.app.outputs.RegistryCredentialsResponse 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.app.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 RegistryCredentialsResponse {
/**
* @return A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'
*
*/
private @Nullable String identity;
/**
* @return The name of the Secret that contains the registry login password
*
*/
private @Nullable String passwordSecretRef;
/**
* @return Container Registry Server
*
*/
private @Nullable String server;
/**
* @return Container Registry Username
*
*/
private @Nullable String username;
private RegistryCredentialsResponse() {}
/**
* @return A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'
*
*/
public Optional identity() {
return Optional.ofNullable(this.identity);
}
/**
* @return The name of the Secret that contains the registry login password
*
*/
public Optional passwordSecretRef() {
return Optional.ofNullable(this.passwordSecretRef);
}
/**
* @return Container Registry Server
*
*/
public Optional server() {
return Optional.ofNullable(this.server);
}
/**
* @return Container Registry Username
*
*/
public Optional username() {
return Optional.ofNullable(this.username);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RegistryCredentialsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String identity;
private @Nullable String passwordSecretRef;
private @Nullable String server;
private @Nullable String username;
public Builder() {}
public Builder(RegistryCredentialsResponse defaults) {
Objects.requireNonNull(defaults);
this.identity = defaults.identity;
this.passwordSecretRef = defaults.passwordSecretRef;
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 passwordSecretRef(@Nullable String passwordSecretRef) {
this.passwordSecretRef = passwordSecretRef;
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 RegistryCredentialsResponse build() {
final var _resultValue = new RegistryCredentialsResponse();
_resultValue.identity = identity;
_resultValue.passwordSecretRef = passwordSecretRef;
_resultValue.server = server;
_resultValue.username = username;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy