com.pulumi.consul.inputs.ServiceCheckHeaderArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consul Show documentation
Show all versions of consul Show documentation
A Pulumi package for creating and managing consul 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.consul.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class ServiceCheckHeaderArgs extends com.pulumi.resources.ResourceArgs {
public static final ServiceCheckHeaderArgs Empty = new ServiceCheckHeaderArgs();
/**
* The name of the header.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return The name of the header.
*
*/
public Output name() {
return this.name;
}
/**
* The header's list of values.
*
*/
@Import(name="values", required=true)
private Output> values;
/**
* @return The header's list of values.
*
*/
public Output> values() {
return this.values;
}
private ServiceCheckHeaderArgs() {}
private ServiceCheckHeaderArgs(ServiceCheckHeaderArgs $) {
this.name = $.name;
this.values = $.values;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceCheckHeaderArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ServiceCheckHeaderArgs $;
public Builder() {
$ = new ServiceCheckHeaderArgs();
}
public Builder(ServiceCheckHeaderArgs defaults) {
$ = new ServiceCheckHeaderArgs(Objects.requireNonNull(defaults));
}
/**
* @param name The name of the header.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name The name of the header.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param values The header's list of values.
*
* @return builder
*
*/
public Builder values(Output> values) {
$.values = values;
return this;
}
/**
* @param values The header's list of values.
*
* @return builder
*
*/
public Builder values(List values) {
return values(Output.of(values));
}
/**
* @param values The header's list of values.
*
* @return builder
*
*/
public Builder values(String... values) {
return values(List.of(values));
}
public ServiceCheckHeaderArgs build() {
$.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null");
$.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null");
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy