com.pulumi.aws.appmesh.inputs.RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.appmesh.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs extends com.pulumi.resources.ResourceArgs {
public static final RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs Empty = new RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs();
/**
* Retry unit. Valid values: `ms`, `s`.
*
*/
@Import(name="unit", required=true)
private Output unit;
/**
* @return Retry unit. Valid values: `ms`, `s`.
*
*/
public Output unit() {
return this.unit;
}
/**
* Retry value.
*
*/
@Import(name="value", required=true)
private Output value;
/**
* @return Retry value.
*
*/
public Output value() {
return this.value;
}
private RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs() {}
private RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs(RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs $) {
this.unit = $.unit;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs $;
public Builder() {
$ = new RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs();
}
public Builder(RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs defaults) {
$ = new RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs(Objects.requireNonNull(defaults));
}
/**
* @param unit Retry unit. Valid values: `ms`, `s`.
*
* @return builder
*
*/
public Builder unit(Output unit) {
$.unit = unit;
return this;
}
/**
* @param unit Retry unit. Valid values: `ms`, `s`.
*
* @return builder
*
*/
public Builder unit(String unit) {
return unit(Output.of(unit));
}
/**
* @param value Retry value.
*
* @return builder
*
*/
public Builder value(Output value) {
$.value = value;
return this;
}
/**
* @param value Retry value.
*
* @return builder
*
*/
public Builder value(Integer value) {
return value(Output.of(value));
}
public RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs build() {
if ($.unit == null) {
throw new MissingRequiredPropertyException("RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs", "unit");
}
if ($.value == null) {
throw new MissingRequiredPropertyException("RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs", "value");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy