com.pulumi.azurenative.monitor.inputs.ResourceMapArgs 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.monitor.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;
/**
* Resource map for schema in azure monitor.
*
*/
public final class ResourceMapArgs extends com.pulumi.resources.ResourceArgs {
public static final ResourceMapArgs Empty = new ResourceMapArgs();
/**
* Resource Map Key.
*
*/
@Import(name="from", required=true)
private Output from;
/**
* @return Resource Map Key.
*
*/
public Output from() {
return this.from;
}
/**
* Resource Map Value.
*
*/
@Import(name="to", required=true)
private Output to;
/**
* @return Resource Map Value.
*
*/
public Output to() {
return this.to;
}
private ResourceMapArgs() {}
private ResourceMapArgs(ResourceMapArgs $) {
this.from = $.from;
this.to = $.to;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ResourceMapArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ResourceMapArgs $;
public Builder() {
$ = new ResourceMapArgs();
}
public Builder(ResourceMapArgs defaults) {
$ = new ResourceMapArgs(Objects.requireNonNull(defaults));
}
/**
* @param from Resource Map Key.
*
* @return builder
*
*/
public Builder from(Output from) {
$.from = from;
return this;
}
/**
* @param from Resource Map Key.
*
* @return builder
*
*/
public Builder from(String from) {
return from(Output.of(from));
}
/**
* @param to Resource Map Value.
*
* @return builder
*
*/
public Builder to(Output to) {
$.to = to;
return this;
}
/**
* @param to Resource Map Value.
*
* @return builder
*
*/
public Builder to(String to) {
return to(Output.of(to));
}
public ResourceMapArgs build() {
if ($.from == null) {
throw new MissingRequiredPropertyException("ResourceMapArgs", "from");
}
if ($.to == null) {
throw new MissingRequiredPropertyException("ResourceMapArgs", "to");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy