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

com.pulumi.azurenative.recoveryservices.outputs.VMNicDetailsResponse 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.azurenative.recoveryservices.outputs;

import com.pulumi.azurenative.recoveryservices.outputs.IPConfigDetailsResponse;
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 VMNicDetailsResponse {
    /**
     * @return A value indicating whether the NIC has accelerated networking enabled.
     * 
     */
    private @Nullable Boolean enableAcceleratedNetworkingOnRecovery;
    /**
     * @return Whether the TFO NIC has accelerated networking enabled.
     * 
     */
    private @Nullable Boolean enableAcceleratedNetworkingOnTfo;
    /**
     * @return The IP configurations of the NIC.
     * 
     */
    private @Nullable List ipConfigs;
    /**
     * @return The nic Id.
     * 
     */
    private @Nullable String nicId;
    /**
     * @return The id of the NSG associated with the NIC.
     * 
     */
    private @Nullable String recoveryNetworkSecurityGroupId;
    /**
     * @return The name of the NIC to be used when creating target NICs.
     * 
     */
    private @Nullable String recoveryNicName;
    /**
     * @return The resource group of the NIC to be used when creating target NICs.
     * 
     */
    private @Nullable String recoveryNicResourceGroupName;
    /**
     * @return Recovery VM network Id.
     * 
     */
    private @Nullable String recoveryVMNetworkId;
    /**
     * @return The replica nic Id.
     * 
     */
    private @Nullable String replicaNicId;
    /**
     * @return A value indicating whether an existing NIC is allowed to be reused during failover subject to availability.
     * 
     */
    private @Nullable Boolean reuseExistingNic;
    /**
     * @return Selection type for failover.
     * 
     */
    private @Nullable String selectionType;
    /**
     * @return The source nic ARM Id.
     * 
     */
    private @Nullable String sourceNicArmId;
    /**
     * @return Target NIC name.
     * 
     */
    private @Nullable String targetNicName;
    /**
     * @return The NSG to be used by NIC during test failover.
     * 
     */
    private @Nullable String tfoNetworkSecurityGroupId;
    /**
     * @return The name of the NIC to be used when creating target NICs in TFO.
     * 
     */
    private @Nullable String tfoRecoveryNicName;
    /**
     * @return The resource group of the NIC to be used when creating target NICs in TFO.
     * 
     */
    private @Nullable String tfoRecoveryNicResourceGroupName;
    /**
     * @return A value indicating whether an existing NIC is allowed to be reused during test failover subject to availability.
     * 
     */
    private @Nullable Boolean tfoReuseExistingNic;
    /**
     * @return The network to be used by NIC during test failover.
     * 
     */
    private @Nullable String tfoVMNetworkId;
    /**
     * @return VM network name.
     * 
     */
    private @Nullable String vMNetworkName;

    private VMNicDetailsResponse() {}
    /**
     * @return A value indicating whether the NIC has accelerated networking enabled.
     * 
     */
    public Optional enableAcceleratedNetworkingOnRecovery() {
        return Optional.ofNullable(this.enableAcceleratedNetworkingOnRecovery);
    }
    /**
     * @return Whether the TFO NIC has accelerated networking enabled.
     * 
     */
    public Optional enableAcceleratedNetworkingOnTfo() {
        return Optional.ofNullable(this.enableAcceleratedNetworkingOnTfo);
    }
    /**
     * @return The IP configurations of the NIC.
     * 
     */
    public List ipConfigs() {
        return this.ipConfigs == null ? List.of() : this.ipConfigs;
    }
    /**
     * @return The nic Id.
     * 
     */
    public Optional nicId() {
        return Optional.ofNullable(this.nicId);
    }
    /**
     * @return The id of the NSG associated with the NIC.
     * 
     */
    public Optional recoveryNetworkSecurityGroupId() {
        return Optional.ofNullable(this.recoveryNetworkSecurityGroupId);
    }
    /**
     * @return The name of the NIC to be used when creating target NICs.
     * 
     */
    public Optional recoveryNicName() {
        return Optional.ofNullable(this.recoveryNicName);
    }
    /**
     * @return The resource group of the NIC to be used when creating target NICs.
     * 
     */
    public Optional recoveryNicResourceGroupName() {
        return Optional.ofNullable(this.recoveryNicResourceGroupName);
    }
    /**
     * @return Recovery VM network Id.
     * 
     */
    public Optional recoveryVMNetworkId() {
        return Optional.ofNullable(this.recoveryVMNetworkId);
    }
    /**
     * @return The replica nic Id.
     * 
     */
    public Optional replicaNicId() {
        return Optional.ofNullable(this.replicaNicId);
    }
    /**
     * @return A value indicating whether an existing NIC is allowed to be reused during failover subject to availability.
     * 
     */
    public Optional reuseExistingNic() {
        return Optional.ofNullable(this.reuseExistingNic);
    }
    /**
     * @return Selection type for failover.
     * 
     */
    public Optional selectionType() {
        return Optional.ofNullable(this.selectionType);
    }
    /**
     * @return The source nic ARM Id.
     * 
     */
    public Optional sourceNicArmId() {
        return Optional.ofNullable(this.sourceNicArmId);
    }
    /**
     * @return Target NIC name.
     * 
     */
    public Optional targetNicName() {
        return Optional.ofNullable(this.targetNicName);
    }
    /**
     * @return The NSG to be used by NIC during test failover.
     * 
     */
    public Optional tfoNetworkSecurityGroupId() {
        return Optional.ofNullable(this.tfoNetworkSecurityGroupId);
    }
    /**
     * @return The name of the NIC to be used when creating target NICs in TFO.
     * 
     */
    public Optional tfoRecoveryNicName() {
        return Optional.ofNullable(this.tfoRecoveryNicName);
    }
    /**
     * @return The resource group of the NIC to be used when creating target NICs in TFO.
     * 
     */
    public Optional tfoRecoveryNicResourceGroupName() {
        return Optional.ofNullable(this.tfoRecoveryNicResourceGroupName);
    }
    /**
     * @return A value indicating whether an existing NIC is allowed to be reused during test failover subject to availability.
     * 
     */
    public Optional tfoReuseExistingNic() {
        return Optional.ofNullable(this.tfoReuseExistingNic);
    }
    /**
     * @return The network to be used by NIC during test failover.
     * 
     */
    public Optional tfoVMNetworkId() {
        return Optional.ofNullable(this.tfoVMNetworkId);
    }
    /**
     * @return VM network name.
     * 
     */
    public Optional vMNetworkName() {
        return Optional.ofNullable(this.vMNetworkName);
    }

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

    public static Builder builder(VMNicDetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean enableAcceleratedNetworkingOnRecovery;
        private @Nullable Boolean enableAcceleratedNetworkingOnTfo;
        private @Nullable List ipConfigs;
        private @Nullable String nicId;
        private @Nullable String recoveryNetworkSecurityGroupId;
        private @Nullable String recoveryNicName;
        private @Nullable String recoveryNicResourceGroupName;
        private @Nullable String recoveryVMNetworkId;
        private @Nullable String replicaNicId;
        private @Nullable Boolean reuseExistingNic;
        private @Nullable String selectionType;
        private @Nullable String sourceNicArmId;
        private @Nullable String targetNicName;
        private @Nullable String tfoNetworkSecurityGroupId;
        private @Nullable String tfoRecoveryNicName;
        private @Nullable String tfoRecoveryNicResourceGroupName;
        private @Nullable Boolean tfoReuseExistingNic;
        private @Nullable String tfoVMNetworkId;
        private @Nullable String vMNetworkName;
        public Builder() {}
        public Builder(VMNicDetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enableAcceleratedNetworkingOnRecovery = defaults.enableAcceleratedNetworkingOnRecovery;
    	      this.enableAcceleratedNetworkingOnTfo = defaults.enableAcceleratedNetworkingOnTfo;
    	      this.ipConfigs = defaults.ipConfigs;
    	      this.nicId = defaults.nicId;
    	      this.recoveryNetworkSecurityGroupId = defaults.recoveryNetworkSecurityGroupId;
    	      this.recoveryNicName = defaults.recoveryNicName;
    	      this.recoveryNicResourceGroupName = defaults.recoveryNicResourceGroupName;
    	      this.recoveryVMNetworkId = defaults.recoveryVMNetworkId;
    	      this.replicaNicId = defaults.replicaNicId;
    	      this.reuseExistingNic = defaults.reuseExistingNic;
    	      this.selectionType = defaults.selectionType;
    	      this.sourceNicArmId = defaults.sourceNicArmId;
    	      this.targetNicName = defaults.targetNicName;
    	      this.tfoNetworkSecurityGroupId = defaults.tfoNetworkSecurityGroupId;
    	      this.tfoRecoveryNicName = defaults.tfoRecoveryNicName;
    	      this.tfoRecoveryNicResourceGroupName = defaults.tfoRecoveryNicResourceGroupName;
    	      this.tfoReuseExistingNic = defaults.tfoReuseExistingNic;
    	      this.tfoVMNetworkId = defaults.tfoVMNetworkId;
    	      this.vMNetworkName = defaults.vMNetworkName;
        }

        @CustomType.Setter
        public Builder enableAcceleratedNetworkingOnRecovery(@Nullable Boolean enableAcceleratedNetworkingOnRecovery) {

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

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

            this.ipConfigs = ipConfigs;
            return this;
        }
        public Builder ipConfigs(IPConfigDetailsResponse... ipConfigs) {
            return ipConfigs(List.of(ipConfigs));
        }
        @CustomType.Setter
        public Builder nicId(@Nullable String nicId) {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            this.vMNetworkName = vMNetworkName;
            return this;
        }
        public VMNicDetailsResponse build() {
            final var _resultValue = new VMNicDetailsResponse();
            _resultValue.enableAcceleratedNetworkingOnRecovery = enableAcceleratedNetworkingOnRecovery;
            _resultValue.enableAcceleratedNetworkingOnTfo = enableAcceleratedNetworkingOnTfo;
            _resultValue.ipConfigs = ipConfigs;
            _resultValue.nicId = nicId;
            _resultValue.recoveryNetworkSecurityGroupId = recoveryNetworkSecurityGroupId;
            _resultValue.recoveryNicName = recoveryNicName;
            _resultValue.recoveryNicResourceGroupName = recoveryNicResourceGroupName;
            _resultValue.recoveryVMNetworkId = recoveryVMNetworkId;
            _resultValue.replicaNicId = replicaNicId;
            _resultValue.reuseExistingNic = reuseExistingNic;
            _resultValue.selectionType = selectionType;
            _resultValue.sourceNicArmId = sourceNicArmId;
            _resultValue.targetNicName = targetNicName;
            _resultValue.tfoNetworkSecurityGroupId = tfoNetworkSecurityGroupId;
            _resultValue.tfoRecoveryNicName = tfoRecoveryNicName;
            _resultValue.tfoRecoveryNicResourceGroupName = tfoRecoveryNicResourceGroupName;
            _resultValue.tfoReuseExistingNic = tfoReuseExistingNic;
            _resultValue.tfoVMNetworkId = tfoVMNetworkId;
            _resultValue.vMNetworkName = vMNetworkName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy