com.pulumi.aws.storagegateway.CacheArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.storagegateway;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class CacheArgs extends com.pulumi.resources.ResourceArgs {
public static final CacheArgs Empty = new CacheArgs();
/**
* Local disk identifier. For example, `pci-0000:03:00.0-scsi-0:0:0:0`.
*
*/
@Import(name="diskId", required=true)
private Output diskId;
/**
* @return Local disk identifier. For example, `pci-0000:03:00.0-scsi-0:0:0:0`.
*
*/
public Output diskId() {
return this.diskId;
}
/**
* The Amazon Resource Name (ARN) of the gateway.
*
*/
@Import(name="gatewayArn", required=true)
private Output gatewayArn;
/**
* @return The Amazon Resource Name (ARN) of the gateway.
*
*/
public Output gatewayArn() {
return this.gatewayArn;
}
private CacheArgs() {}
private CacheArgs(CacheArgs $) {
this.diskId = $.diskId;
this.gatewayArn = $.gatewayArn;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CacheArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private CacheArgs $;
public Builder() {
$ = new CacheArgs();
}
public Builder(CacheArgs defaults) {
$ = new CacheArgs(Objects.requireNonNull(defaults));
}
/**
* @param diskId Local disk identifier. For example, `pci-0000:03:00.0-scsi-0:0:0:0`.
*
* @return builder
*
*/
public Builder diskId(Output diskId) {
$.diskId = diskId;
return this;
}
/**
* @param diskId Local disk identifier. For example, `pci-0000:03:00.0-scsi-0:0:0:0`.
*
* @return builder
*
*/
public Builder diskId(String diskId) {
return diskId(Output.of(diskId));
}
/**
* @param gatewayArn The Amazon Resource Name (ARN) of the gateway.
*
* @return builder
*
*/
public Builder gatewayArn(Output gatewayArn) {
$.gatewayArn = gatewayArn;
return this;
}
/**
* @param gatewayArn The Amazon Resource Name (ARN) of the gateway.
*
* @return builder
*
*/
public Builder gatewayArn(String gatewayArn) {
return gatewayArn(Output.of(gatewayArn));
}
public CacheArgs build() {
if ($.diskId == null) {
throw new MissingRequiredPropertyException("CacheArgs", "diskId");
}
if ($.gatewayArn == null) {
throw new MissingRequiredPropertyException("CacheArgs", "gatewayArn");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy