
com.pulumi.azurenative.storsimple.outputs.GetStorageAccountCredentialResult 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.storsimple.outputs;
import com.pulumi.azurenative.storsimple.outputs.AsymmetricEncryptedSecretResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetStorageAccountCredentialResult {
/**
* @return The details of the storage account password.
*
*/
private @Nullable AsymmetricEncryptedSecretResponse accessKey;
/**
* @return The storage endpoint
*
*/
private String endPoint;
/**
* @return The path ID that uniquely identifies the object.
*
*/
private String id;
/**
* @return The Kind of the object. Currently only Series8000 is supported
*
*/
private @Nullable String kind;
/**
* @return The name of the object.
*
*/
private String name;
/**
* @return Signifies whether SSL needs to be enabled or not.
*
*/
private String sslStatus;
/**
* @return The hierarchical type of the object.
*
*/
private String type;
/**
* @return The count of volumes using this storage account credential.
*
*/
private Integer volumesCount;
private GetStorageAccountCredentialResult() {}
/**
* @return The details of the storage account password.
*
*/
public Optional accessKey() {
return Optional.ofNullable(this.accessKey);
}
/**
* @return The storage endpoint
*
*/
public String endPoint() {
return this.endPoint;
}
/**
* @return The path ID that uniquely identifies the object.
*
*/
public String id() {
return this.id;
}
/**
* @return The Kind of the object. Currently only Series8000 is supported
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return The name of the object.
*
*/
public String name() {
return this.name;
}
/**
* @return Signifies whether SSL needs to be enabled or not.
*
*/
public String sslStatus() {
return this.sslStatus;
}
/**
* @return The hierarchical type of the object.
*
*/
public String type() {
return this.type;
}
/**
* @return The count of volumes using this storage account credential.
*
*/
public Integer volumesCount() {
return this.volumesCount;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetStorageAccountCredentialResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable AsymmetricEncryptedSecretResponse accessKey;
private String endPoint;
private String id;
private @Nullable String kind;
private String name;
private String sslStatus;
private String type;
private Integer volumesCount;
public Builder() {}
public Builder(GetStorageAccountCredentialResult defaults) {
Objects.requireNonNull(defaults);
this.accessKey = defaults.accessKey;
this.endPoint = defaults.endPoint;
this.id = defaults.id;
this.kind = defaults.kind;
this.name = defaults.name;
this.sslStatus = defaults.sslStatus;
this.type = defaults.type;
this.volumesCount = defaults.volumesCount;
}
@CustomType.Setter
public Builder accessKey(@Nullable AsymmetricEncryptedSecretResponse accessKey) {
this.accessKey = accessKey;
return this;
}
@CustomType.Setter
public Builder endPoint(String endPoint) {
if (endPoint == null) {
throw new MissingRequiredPropertyException("GetStorageAccountCredentialResult", "endPoint");
}
this.endPoint = endPoint;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetStorageAccountCredentialResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetStorageAccountCredentialResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder sslStatus(String sslStatus) {
if (sslStatus == null) {
throw new MissingRequiredPropertyException("GetStorageAccountCredentialResult", "sslStatus");
}
this.sslStatus = sslStatus;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetStorageAccountCredentialResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder volumesCount(Integer volumesCount) {
if (volumesCount == null) {
throw new MissingRequiredPropertyException("GetStorageAccountCredentialResult", "volumesCount");
}
this.volumesCount = volumesCount;
return this;
}
public GetStorageAccountCredentialResult build() {
final var _resultValue = new GetStorageAccountCredentialResult();
_resultValue.accessKey = accessKey;
_resultValue.endPoint = endPoint;
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.sslStatus = sslStatus;
_resultValue.type = type;
_resultValue.volumesCount = volumesCount;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy