// *** 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.GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationSubjectAlternativeName;
import com.pulumi.aws.appmesh.outputs.GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationTrust;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidation {
    private List<GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationSubjectAlternativeName> subjectAlternativeNames;
    private List<GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationTrust> trusts;

    private GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidation() {}
    public List<GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationSubjectAlternativeName> subjectAlternativeNames() {
        return this.subjectAlternativeNames;
    }
    public List<GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationTrust> trusts() {
        return this.trusts;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidation defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationSubjectAlternativeName> subjectAlternativeNames;
        private List<GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationTrust> trusts;
        public Builder() {}
        public Builder(GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidation defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.subjectAlternativeNames = defaults.subjectAlternativeNames;
    	      this.trusts = defaults.trusts;
        }

        @CustomType.Setter
        public Builder subjectAlternativeNames(List<GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationSubjectAlternativeName> subjectAlternativeNames) {
            this.subjectAlternativeNames = Objects.requireNonNull(subjectAlternativeNames);
            return this;
        }
        public Builder subjectAlternativeNames(GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationSubjectAlternativeName... subjectAlternativeNames) {
            return subjectAlternativeNames(List.of(subjectAlternativeNames));
        }
        @CustomType.Setter
        public Builder trusts(List<GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationTrust> trusts) {
            this.trusts = Objects.requireNonNull(trusts);
            return this;
        }
        public Builder trusts(GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidationTrust... trusts) {
            return trusts(List.of(trusts));
        }
        public GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidation build() {
            final var o = new GetVirtualNodeSpecBackendVirtualServiceClientPolicyTlValidation();
            o.subjectAlternativeNames = subjectAlternativeNames;
            o.trusts = trusts;
            return o;
        }
    }
}
