
com.pulumi.azurenative.servicefabric.outputs.ClientCertificateResponse 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.servicefabric.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ClientCertificateResponse {
/**
* @return Certificate common name.
*
*/
private @Nullable String commonName;
/**
* @return Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster.
*
*/
private Boolean isAdmin;
/**
* @return Issuer thumbprint for the certificate. Only used together with CommonName.
*
*/
private @Nullable String issuerThumbprint;
/**
* @return Certificate thumbprint.
*
*/
private @Nullable String thumbprint;
private ClientCertificateResponse() {}
/**
* @return Certificate common name.
*
*/
public Optional commonName() {
return Optional.ofNullable(this.commonName);
}
/**
* @return Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster.
*
*/
public Boolean isAdmin() {
return this.isAdmin;
}
/**
* @return Issuer thumbprint for the certificate. Only used together with CommonName.
*
*/
public Optional issuerThumbprint() {
return Optional.ofNullable(this.issuerThumbprint);
}
/**
* @return Certificate thumbprint.
*
*/
public Optional thumbprint() {
return Optional.ofNullable(this.thumbprint);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ClientCertificateResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String commonName;
private Boolean isAdmin;
private @Nullable String issuerThumbprint;
private @Nullable String thumbprint;
public Builder() {}
public Builder(ClientCertificateResponse defaults) {
Objects.requireNonNull(defaults);
this.commonName = defaults.commonName;
this.isAdmin = defaults.isAdmin;
this.issuerThumbprint = defaults.issuerThumbprint;
this.thumbprint = defaults.thumbprint;
}
@CustomType.Setter
public Builder commonName(@Nullable String commonName) {
this.commonName = commonName;
return this;
}
@CustomType.Setter
public Builder isAdmin(Boolean isAdmin) {
if (isAdmin == null) {
throw new MissingRequiredPropertyException("ClientCertificateResponse", "isAdmin");
}
this.isAdmin = isAdmin;
return this;
}
@CustomType.Setter
public Builder issuerThumbprint(@Nullable String issuerThumbprint) {
this.issuerThumbprint = issuerThumbprint;
return this;
}
@CustomType.Setter
public Builder thumbprint(@Nullable String thumbprint) {
this.thumbprint = thumbprint;
return this;
}
public ClientCertificateResponse build() {
final var _resultValue = new ClientCertificateResponse();
_resultValue.commonName = commonName;
_resultValue.isAdmin = isAdmin;
_resultValue.issuerThumbprint = issuerThumbprint;
_resultValue.thumbprint = thumbprint;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy