com.pulumi.aws.appmesh.outputs.VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation Maven / Gradle / Ivy
// *** 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.VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames;
import com.pulumi.aws.appmesh.outputs.VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation {
/**
* @return SANs for a TLS validation context.
*
*/
private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames;
/**
* @return TLS validation context trust.
*
*/
private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust trust;
private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation() {}
/**
* @return SANs for a TLS validation context.
*
*/
public Optional subjectAlternativeNames() {
return Optional.ofNullable(this.subjectAlternativeNames);
}
/**
* @return TLS validation context trust.
*
*/
public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust trust() {
return this.trust;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames;
private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust trust;
public Builder() {}
public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation defaults) {
Objects.requireNonNull(defaults);
this.subjectAlternativeNames = defaults.subjectAlternativeNames;
this.trust = defaults.trust;
}
@CustomType.Setter
public Builder subjectAlternativeNames(@Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames) {
this.subjectAlternativeNames = subjectAlternativeNames;
return this;
}
@CustomType.Setter
public Builder trust(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust trust) {
if (trust == null) {
throw new MissingRequiredPropertyException("VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation", "trust");
}
this.trust = trust;
return this;
}
public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation build() {
final var _resultValue = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation();
_resultValue.subjectAlternativeNames = subjectAlternativeNames;
_resultValue.trust = trust;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy