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

com.pulumi.azurenative.migrate.outputs.SubnetResourceSettingsResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.migrate.outputs;

import com.pulumi.azurenative.migrate.outputs.NsgReferenceResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SubnetResourceSettingsResponse {
    /**
     * @return Gets or sets address prefix for the subnet.
     * 
     */
    private @Nullable String addressPrefix;
    /**
     * @return Gets or sets the Subnet name.
     * 
     */
    private @Nullable String name;
    /**
     * @return Defines reference to NSG.
     * 
     */
    private @Nullable NsgReferenceResponse networkSecurityGroup;

    private SubnetResourceSettingsResponse() {}
    /**
     * @return Gets or sets address prefix for the subnet.
     * 
     */
    public Optional addressPrefix() {
        return Optional.ofNullable(this.addressPrefix);
    }
    /**
     * @return Gets or sets the Subnet name.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Defines reference to NSG.
     * 
     */
    public Optional networkSecurityGroup() {
        return Optional.ofNullable(this.networkSecurityGroup);
    }

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

    public static Builder builder(SubnetResourceSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String addressPrefix;
        private @Nullable String name;
        private @Nullable NsgReferenceResponse networkSecurityGroup;
        public Builder() {}
        public Builder(SubnetResourceSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.addressPrefix = defaults.addressPrefix;
    	      this.name = defaults.name;
    	      this.networkSecurityGroup = defaults.networkSecurityGroup;
        }

        @CustomType.Setter
        public Builder addressPrefix(@Nullable String addressPrefix) {

            this.addressPrefix = addressPrefix;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder networkSecurityGroup(@Nullable NsgReferenceResponse networkSecurityGroup) {

            this.networkSecurityGroup = networkSecurityGroup;
            return this;
        }
        public SubnetResourceSettingsResponse build() {
            final var _resultValue = new SubnetResourceSettingsResponse();
            _resultValue.addressPrefix = addressPrefix;
            _resultValue.name = name;
            _resultValue.networkSecurityGroup = networkSecurityGroup;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy