All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.azurefleet.outputs.SecurityPostureReferenceResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
Show newest version
// *** 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.azurefleet.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SecurityPostureReferenceResponse {
    /**
     * @return List of virtual machine extension names to exclude when applying the security
     * posture.
     * 
     */
    private @Nullable List excludeExtensions;
    /**
     * @return The security posture reference id in the form of
     * /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest
     * 
     */
    private @Nullable String id;
    /**
     * @return Whether the security posture can be overridden by the user.
     * 
     */
    private @Nullable Boolean isOverridable;

    private SecurityPostureReferenceResponse() {}
    /**
     * @return List of virtual machine extension names to exclude when applying the security
     * posture.
     * 
     */
    public List excludeExtensions() {
        return this.excludeExtensions == null ? List.of() : this.excludeExtensions;
    }
    /**
     * @return The security posture reference id in the form of
     * /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return Whether the security posture can be overridden by the user.
     * 
     */
    public Optional isOverridable() {
        return Optional.ofNullable(this.isOverridable);
    }

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

    public static Builder builder(SecurityPostureReferenceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List excludeExtensions;
        private @Nullable String id;
        private @Nullable Boolean isOverridable;
        public Builder() {}
        public Builder(SecurityPostureReferenceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.excludeExtensions = defaults.excludeExtensions;
    	      this.id = defaults.id;
    	      this.isOverridable = defaults.isOverridable;
        }

        @CustomType.Setter
        public Builder excludeExtensions(@Nullable List excludeExtensions) {

            this.excludeExtensions = excludeExtensions;
            return this;
        }
        public Builder excludeExtensions(String... excludeExtensions) {
            return excludeExtensions(List.of(excludeExtensions));
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder isOverridable(@Nullable Boolean isOverridable) {

            this.isOverridable = isOverridable;
            return this;
        }
        public SecurityPostureReferenceResponse build() {
            final var _resultValue = new SecurityPostureReferenceResponse();
            _resultValue.excludeExtensions = excludeExtensions;
            _resultValue.id = id;
            _resultValue.isOverridable = isOverridable;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy