com.pulumi.docker.inputs.ContainerMountVolumeOptionsLabelArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker Show documentation
Show all versions of docker Show documentation
A Pulumi package for interacting with Docker in Pulumi programs
// *** 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.docker.inputs;
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 ContainerMountVolumeOptionsLabelArgs extends com.pulumi.resources.ResourceArgs {
public static final ContainerMountVolumeOptionsLabelArgs Empty = new ContainerMountVolumeOptionsLabelArgs();
/**
* Name of the label
*
*/
@Import(name="label", required=true)
private Output label;
/**
* @return Name of the label
*
*/
public Output label() {
return this.label;
}
/**
* Value of the label
*
*/
@Import(name="value", required=true)
private Output value;
/**
* @return Value of the label
*
*/
public Output value() {
return this.value;
}
private ContainerMountVolumeOptionsLabelArgs() {}
private ContainerMountVolumeOptionsLabelArgs(ContainerMountVolumeOptionsLabelArgs $) {
this.label = $.label;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContainerMountVolumeOptionsLabelArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ContainerMountVolumeOptionsLabelArgs $;
public Builder() {
$ = new ContainerMountVolumeOptionsLabelArgs();
}
public Builder(ContainerMountVolumeOptionsLabelArgs defaults) {
$ = new ContainerMountVolumeOptionsLabelArgs(Objects.requireNonNull(defaults));
}
/**
* @param label Name of the label
*
* @return builder
*
*/
public Builder label(Output label) {
$.label = label;
return this;
}
/**
* @param label Name of the label
*
* @return builder
*
*/
public Builder label(String label) {
return label(Output.of(label));
}
/**
* @param value Value of the label
*
* @return builder
*
*/
public Builder value(Output value) {
$.value = value;
return this;
}
/**
* @param value Value of the label
*
* @return builder
*
*/
public Builder value(String value) {
return value(Output.of(value));
}
public ContainerMountVolumeOptionsLabelArgs build() {
if ($.label == null) {
throw new MissingRequiredPropertyException("ContainerMountVolumeOptionsLabelArgs", "label");
}
if ($.value == null) {
throw new MissingRequiredPropertyException("ContainerMountVolumeOptionsLabelArgs", "value");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy