com.pulumi.spotinst.ecs.inputs.OceanLaunchSpecAttributeArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotinst Show documentation
Show all versions of spotinst Show documentation
A Pulumi package for creating and managing spotinst cloud resources.
The newest version!
// *** 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.spotinst.ecs.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 OceanLaunchSpecAttributeArgs extends com.pulumi.resources.ResourceArgs {
public static final OceanLaunchSpecAttributeArgs Empty = new OceanLaunchSpecAttributeArgs();
/**
* The label key.
*
*/
@Import(name="key", required=true)
private Output key;
/**
* @return The label key.
*
*/
public Output key() {
return this.key;
}
/**
* The label value.
*
*/
@Import(name="value", required=true)
private Output value;
/**
* @return The label value.
*
*/
public Output value() {
return this.value;
}
private OceanLaunchSpecAttributeArgs() {}
private OceanLaunchSpecAttributeArgs(OceanLaunchSpecAttributeArgs $) {
this.key = $.key;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OceanLaunchSpecAttributeArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private OceanLaunchSpecAttributeArgs $;
public Builder() {
$ = new OceanLaunchSpecAttributeArgs();
}
public Builder(OceanLaunchSpecAttributeArgs defaults) {
$ = new OceanLaunchSpecAttributeArgs(Objects.requireNonNull(defaults));
}
/**
* @param key The label key.
*
* @return builder
*
*/
public Builder key(Output key) {
$.key = key;
return this;
}
/**
* @param key The label key.
*
* @return builder
*
*/
public Builder key(String key) {
return key(Output.of(key));
}
/**
* @param value The label value.
*
* @return builder
*
*/
public Builder value(Output value) {
$.value = value;
return this;
}
/**
* @param value The label value.
*
* @return builder
*
*/
public Builder value(String value) {
return value(Output.of(value));
}
public OceanLaunchSpecAttributeArgs build() {
if ($.key == null) {
throw new MissingRequiredPropertyException("OceanLaunchSpecAttributeArgs", "key");
}
if ($.value == null) {
throw new MissingRequiredPropertyException("OceanLaunchSpecAttributeArgs", "value");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy