com.pulumi.aws.ecs.inputs.ServiceVolumeConfigurationArgs 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.ecs.inputs;
import com.pulumi.aws.ecs.inputs.ServiceVolumeConfigurationManagedEbsVolumeArgs;
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 ServiceVolumeConfigurationArgs extends com.pulumi.resources.ResourceArgs {
public static final ServiceVolumeConfigurationArgs Empty = new ServiceVolumeConfigurationArgs();
/**
* Configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. See below.
*
*/
@Import(name="managedEbsVolume", required=true)
private Output managedEbsVolume;
/**
* @return Configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. See below.
*
*/
public Output managedEbsVolume() {
return this.managedEbsVolume;
}
/**
* Name of the volume.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return Name of the volume.
*
*/
public Output name() {
return this.name;
}
private ServiceVolumeConfigurationArgs() {}
private ServiceVolumeConfigurationArgs(ServiceVolumeConfigurationArgs $) {
this.managedEbsVolume = $.managedEbsVolume;
this.name = $.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceVolumeConfigurationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ServiceVolumeConfigurationArgs $;
public Builder() {
$ = new ServiceVolumeConfigurationArgs();
}
public Builder(ServiceVolumeConfigurationArgs defaults) {
$ = new ServiceVolumeConfigurationArgs(Objects.requireNonNull(defaults));
}
/**
* @param managedEbsVolume Configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. See below.
*
* @return builder
*
*/
public Builder managedEbsVolume(Output managedEbsVolume) {
$.managedEbsVolume = managedEbsVolume;
return this;
}
/**
* @param managedEbsVolume Configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. See below.
*
* @return builder
*
*/
public Builder managedEbsVolume(ServiceVolumeConfigurationManagedEbsVolumeArgs managedEbsVolume) {
return managedEbsVolume(Output.of(managedEbsVolume));
}
/**
* @param name Name of the volume.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name Name of the volume.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
public ServiceVolumeConfigurationArgs build() {
if ($.managedEbsVolume == null) {
throw new MissingRequiredPropertyException("ServiceVolumeConfigurationArgs", "managedEbsVolume");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("ServiceVolumeConfigurationArgs", "name");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy