com.pulumi.consul.inputs.ConfigEntryServiceIntentionsSourcePermissionArgs 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.consul.inputs.ConfigEntryServiceIntentionsSourcePermissionHttpArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class ConfigEntryServiceIntentionsSourcePermissionArgs extends com.pulumi.resources.ResourceArgs {
public static final ConfigEntryServiceIntentionsSourcePermissionArgs Empty = new ConfigEntryServiceIntentionsSourcePermissionArgs();
/**
* Specifies the action to take when the source sends traffic to the destination service. The value is either allow or deny.
*
*/
@Import(name="action", required=true)
private Output action;
/**
* @return Specifies the action to take when the source sends traffic to the destination service. The value is either allow or deny.
*
*/
public Output action() {
return this.action;
}
/**
* Specifies a set of HTTP-specific match criteria.
*
*/
@Import(name="https", required=true)
private Output> https;
/**
* @return Specifies a set of HTTP-specific match criteria.
*
*/
public Output> https() {
return this.https;
}
private ConfigEntryServiceIntentionsSourcePermissionArgs() {}
private ConfigEntryServiceIntentionsSourcePermissionArgs(ConfigEntryServiceIntentionsSourcePermissionArgs $) {
this.action = $.action;
this.https = $.https;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConfigEntryServiceIntentionsSourcePermissionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ConfigEntryServiceIntentionsSourcePermissionArgs $;
public Builder() {
$ = new ConfigEntryServiceIntentionsSourcePermissionArgs();
}
public Builder(ConfigEntryServiceIntentionsSourcePermissionArgs defaults) {
$ = new ConfigEntryServiceIntentionsSourcePermissionArgs(Objects.requireNonNull(defaults));
}
/**
* @param action Specifies the action to take when the source sends traffic to the destination service. The value is either allow or deny.
*
* @return builder
*
*/
public Builder action(Output action) {
$.action = action;
return this;
}
/**
* @param action Specifies the action to take when the source sends traffic to the destination service. The value is either allow or deny.
*
* @return builder
*
*/
public Builder action(String action) {
return action(Output.of(action));
}
/**
* @param https Specifies a set of HTTP-specific match criteria.
*
* @return builder
*
*/
public Builder https(Output> https) {
$.https = https;
return this;
}
/**
* @param https Specifies a set of HTTP-specific match criteria.
*
* @return builder
*
*/
public Builder https(List https) {
return https(Output.of(https));
}
/**
* @param https Specifies a set of HTTP-specific match criteria.
*
* @return builder
*
*/
public Builder https(ConfigEntryServiceIntentionsSourcePermissionHttpArgs... https) {
return https(List.of(https));
}
public ConfigEntryServiceIntentionsSourcePermissionArgs build() {
if ($.action == null) {
throw new MissingRequiredPropertyException("ConfigEntryServiceIntentionsSourcePermissionArgs", "action");
}
if ($.https == null) {
throw new MissingRequiredPropertyException("ConfigEntryServiceIntentionsSourcePermissionArgs", "https");
}
return $;
}
}
}