com.pulumi.docker.inputs.ServiceTaskSpecContainerSpecLabelArgs 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 ServiceTaskSpecContainerSpecLabelArgs extends com.pulumi.resources.ResourceArgs {
public static final ServiceTaskSpecContainerSpecLabelArgs Empty = new ServiceTaskSpecContainerSpecLabelArgs();
/**
* 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 ServiceTaskSpecContainerSpecLabelArgs() {}
private ServiceTaskSpecContainerSpecLabelArgs(ServiceTaskSpecContainerSpecLabelArgs $) {
this.label = $.label;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceTaskSpecContainerSpecLabelArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ServiceTaskSpecContainerSpecLabelArgs $;
public Builder() {
$ = new ServiceTaskSpecContainerSpecLabelArgs();
}
public Builder(ServiceTaskSpecContainerSpecLabelArgs defaults) {
$ = new ServiceTaskSpecContainerSpecLabelArgs(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 ServiceTaskSpecContainerSpecLabelArgs build() {
if ($.label == null) {
throw new MissingRequiredPropertyException("ServiceTaskSpecContainerSpecLabelArgs", "label");
}
if ($.value == null) {
throw new MissingRequiredPropertyException("ServiceTaskSpecContainerSpecLabelArgs", "value");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy