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