com.pulumi.azurenative.databox.outputs.DataboxJobSecretsResponse 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.databox.outputs;
import com.pulumi.azurenative.databox.outputs.CloudErrorResponse;
import com.pulumi.azurenative.databox.outputs.DataBoxSecretResponse;
import com.pulumi.azurenative.databox.outputs.DcAccessSecurityCodeResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class DataboxJobSecretsResponse {
/**
* @return Dc Access Security Code for Customer Managed Shipping
*
*/
private DcAccessSecurityCodeResponse dcAccessSecurityCode;
/**
* @return Error while fetching the secrets.
*
*/
private CloudErrorResponse error;
/**
* @return Used to indicate what type of job secrets object.
* Expected value is 'DataBox'.
*
*/
private String jobSecretsType;
/**
* @return Contains the list of secret objects for a job.
*
*/
private @Nullable List podSecrets;
private DataboxJobSecretsResponse() {}
/**
* @return Dc Access Security Code for Customer Managed Shipping
*
*/
public DcAccessSecurityCodeResponse dcAccessSecurityCode() {
return this.dcAccessSecurityCode;
}
/**
* @return Error while fetching the secrets.
*
*/
public CloudErrorResponse error() {
return this.error;
}
/**
* @return Used to indicate what type of job secrets object.
* Expected value is 'DataBox'.
*
*/
public String jobSecretsType() {
return this.jobSecretsType;
}
/**
* @return Contains the list of secret objects for a job.
*
*/
public List podSecrets() {
return this.podSecrets == null ? List.of() : this.podSecrets;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DataboxJobSecretsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private DcAccessSecurityCodeResponse dcAccessSecurityCode;
private CloudErrorResponse error;
private String jobSecretsType;
private @Nullable List podSecrets;
public Builder() {}
public Builder(DataboxJobSecretsResponse defaults) {
Objects.requireNonNull(defaults);
this.dcAccessSecurityCode = defaults.dcAccessSecurityCode;
this.error = defaults.error;
this.jobSecretsType = defaults.jobSecretsType;
this.podSecrets = defaults.podSecrets;
}
@CustomType.Setter
public Builder dcAccessSecurityCode(DcAccessSecurityCodeResponse dcAccessSecurityCode) {
if (dcAccessSecurityCode == null) {
throw new MissingRequiredPropertyException("DataboxJobSecretsResponse", "dcAccessSecurityCode");
}
this.dcAccessSecurityCode = dcAccessSecurityCode;
return this;
}
@CustomType.Setter
public Builder error(CloudErrorResponse error) {
if (error == null) {
throw new MissingRequiredPropertyException("DataboxJobSecretsResponse", "error");
}
this.error = error;
return this;
}
@CustomType.Setter
public Builder jobSecretsType(String jobSecretsType) {
if (jobSecretsType == null) {
throw new MissingRequiredPropertyException("DataboxJobSecretsResponse", "jobSecretsType");
}
this.jobSecretsType = jobSecretsType;
return this;
}
@CustomType.Setter
public Builder podSecrets(@Nullable List podSecrets) {
this.podSecrets = podSecrets;
return this;
}
public Builder podSecrets(DataBoxSecretResponse... podSecrets) {
return podSecrets(List.of(podSecrets));
}
public DataboxJobSecretsResponse build() {
final var _resultValue = new DataboxJobSecretsResponse();
_resultValue.dcAccessSecurityCode = dcAccessSecurityCode;
_resultValue.error = error;
_resultValue.jobSecretsType = jobSecretsType;
_resultValue.podSecrets = podSecrets;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy