com.pulumi.azurenative.solutions.inputs.ApplicationDeploymentPolicyArgs 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.solutions.inputs;
import com.pulumi.azurenative.solutions.enums.DeploymentMode;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* Managed application deployment policy.
*
*/
public final class ApplicationDeploymentPolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final ApplicationDeploymentPolicyArgs Empty = new ApplicationDeploymentPolicyArgs();
/**
* The managed application deployment mode.
*
*/
@Import(name="deploymentMode", required=true)
private Output> deploymentMode;
/**
* @return The managed application deployment mode.
*
*/
public Output> deploymentMode() {
return this.deploymentMode;
}
private ApplicationDeploymentPolicyArgs() {}
private ApplicationDeploymentPolicyArgs(ApplicationDeploymentPolicyArgs $) {
this.deploymentMode = $.deploymentMode;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApplicationDeploymentPolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ApplicationDeploymentPolicyArgs $;
public Builder() {
$ = new ApplicationDeploymentPolicyArgs();
}
public Builder(ApplicationDeploymentPolicyArgs defaults) {
$ = new ApplicationDeploymentPolicyArgs(Objects.requireNonNull(defaults));
}
/**
* @param deploymentMode The managed application deployment mode.
*
* @return builder
*
*/
public Builder deploymentMode(Output> deploymentMode) {
$.deploymentMode = deploymentMode;
return this;
}
/**
* @param deploymentMode The managed application deployment mode.
*
* @return builder
*
*/
public Builder deploymentMode(Either deploymentMode) {
return deploymentMode(Output.of(deploymentMode));
}
/**
* @param deploymentMode The managed application deployment mode.
*
* @return builder
*
*/
public Builder deploymentMode(String deploymentMode) {
return deploymentMode(Either.ofLeft(deploymentMode));
}
/**
* @param deploymentMode The managed application deployment mode.
*
* @return builder
*
*/
public Builder deploymentMode(DeploymentMode deploymentMode) {
return deploymentMode(Either.ofRight(deploymentMode));
}
public ApplicationDeploymentPolicyArgs build() {
if ($.deploymentMode == null) {
throw new MissingRequiredPropertyException("ApplicationDeploymentPolicyArgs", "deploymentMode");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy