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