com.pulumi.aws.appmesh.outputs.VirtualServiceSpecProvider 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.outputs;
import com.pulumi.aws.appmesh.outputs.VirtualServiceSpecProviderVirtualNode;
import com.pulumi.aws.appmesh.outputs.VirtualServiceSpecProviderVirtualRouter;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VirtualServiceSpecProvider {
/**
* @return Virtual node associated with a virtual service.
*
*/
private @Nullable VirtualServiceSpecProviderVirtualNode virtualNode;
/**
* @return Virtual router associated with a virtual service.
*
*/
private @Nullable VirtualServiceSpecProviderVirtualRouter virtualRouter;
private VirtualServiceSpecProvider() {}
/**
* @return Virtual node associated with a virtual service.
*
*/
public Optional virtualNode() {
return Optional.ofNullable(this.virtualNode);
}
/**
* @return Virtual router associated with a virtual service.
*
*/
public Optional virtualRouter() {
return Optional.ofNullable(this.virtualRouter);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualServiceSpecProvider defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable VirtualServiceSpecProviderVirtualNode virtualNode;
private @Nullable VirtualServiceSpecProviderVirtualRouter virtualRouter;
public Builder() {}
public Builder(VirtualServiceSpecProvider defaults) {
Objects.requireNonNull(defaults);
this.virtualNode = defaults.virtualNode;
this.virtualRouter = defaults.virtualRouter;
}
@CustomType.Setter
public Builder virtualNode(@Nullable VirtualServiceSpecProviderVirtualNode virtualNode) {
this.virtualNode = virtualNode;
return this;
}
@CustomType.Setter
public Builder virtualRouter(@Nullable VirtualServiceSpecProviderVirtualRouter virtualRouter) {
this.virtualRouter = virtualRouter;
return this;
}
public VirtualServiceSpecProvider build() {
final var _resultValue = new VirtualServiceSpecProvider();
_resultValue.virtualNode = virtualNode;
_resultValue.virtualRouter = virtualRouter;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy