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

com.pulumi.junipermist.org.outputs.NetworktemplateSnmpConfigTrapGroup 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.junipermist.org.outputs;

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

@CustomType
public final class NetworktemplateSnmpConfigTrapGroup {
    private @Nullable List categories;
    /**
     * @return Categories list can refer to https://www.juniper.net/documentation/software/topics/task/configuration/snmp_trap-groups-configuring-junos-nm.html
     * 
     */
    private @Nullable String groupName;
    private @Nullable List targets;
    /**
     * @return enum: `all`, `v1`, `v2`
     * 
     */
    private @Nullable String version;

    private NetworktemplateSnmpConfigTrapGroup() {}
    public List categories() {
        return this.categories == null ? List.of() : this.categories;
    }
    /**
     * @return Categories list can refer to https://www.juniper.net/documentation/software/topics/task/configuration/snmp_trap-groups-configuring-junos-nm.html
     * 
     */
    public Optional groupName() {
        return Optional.ofNullable(this.groupName);
    }
    public List targets() {
        return this.targets == null ? List.of() : this.targets;
    }
    /**
     * @return enum: `all`, `v1`, `v2`
     * 
     */
    public Optional version() {
        return Optional.ofNullable(this.version);
    }

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

    public static Builder builder(NetworktemplateSnmpConfigTrapGroup defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List categories;
        private @Nullable String groupName;
        private @Nullable List targets;
        private @Nullable String version;
        public Builder() {}
        public Builder(NetworktemplateSnmpConfigTrapGroup defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.categories = defaults.categories;
    	      this.groupName = defaults.groupName;
    	      this.targets = defaults.targets;
    	      this.version = defaults.version;
        }

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

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

            this.groupName = groupName;
            return this;
        }
        @CustomType.Setter
        public Builder targets(@Nullable List targets) {

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

            this.version = version;
            return this;
        }
        public NetworktemplateSnmpConfigTrapGroup build() {
            final var _resultValue = new NetworktemplateSnmpConfigTrapGroup();
            _resultValue.categories = categories;
            _resultValue.groupName = groupName;
            _resultValue.targets = targets;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy