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

com.pulumi.azurenative.managednetworkfabric.outputs.GetNetworkDeviceResult 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.managednetworkfabric.outputs;

import com.pulumi.azurenative.managednetworkfabric.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetNetworkDeviceResult {
    /**
     * @return Switch configuration description.
     * 
     */
    private @Nullable String annotation;
    /**
     * @return The host Name of the device.
     * 
     */
    private @Nullable String hostName;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private String location;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return networkDeviceRole is the device role: Example: CE | ToR.
     * 
     */
    private String networkDeviceRole;
    /**
     * @return Network Device SKU name.
     * 
     */
    private String networkDeviceSku;
    /**
     * @return Reference to network rack resource id.
     * 
     */
    private String networkRackId;
    /**
     * @return Gets the provisioning state of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return serialNumber of the format Make;Model;HardwareRevisionId;SerialNumber. Example: Arista;DCS-7280DR3-24;12.05;JPE21116969
     * 
     */
    private String serialNumber;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;
    /**
     * @return Current version of the device as defined in SKU.
     * 
     */
    private String version;

    private GetNetworkDeviceResult() {}
    /**
     * @return Switch configuration description.
     * 
     */
    public Optional annotation() {
        return Optional.ofNullable(this.annotation);
    }
    /**
     * @return The host Name of the device.
     * 
     */
    public Optional hostName() {
        return Optional.ofNullable(this.hostName);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The geo-location where the resource lives
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return networkDeviceRole is the device role: Example: CE | ToR.
     * 
     */
    public String networkDeviceRole() {
        return this.networkDeviceRole;
    }
    /**
     * @return Network Device SKU name.
     * 
     */
    public String networkDeviceSku() {
        return this.networkDeviceSku;
    }
    /**
     * @return Reference to network rack resource id.
     * 
     */
    public String networkRackId() {
        return this.networkRackId;
    }
    /**
     * @return Gets the provisioning state of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return serialNumber of the format Make;Model;HardwareRevisionId;SerialNumber. Example: Arista;DCS-7280DR3-24;12.05;JPE21116969
     * 
     */
    public String serialNumber() {
        return this.serialNumber;
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Current version of the device as defined in SKU.
     * 
     */
    public String version() {
        return this.version;
    }

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

    public static Builder builder(GetNetworkDeviceResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String annotation;
        private @Nullable String hostName;
        private String id;
        private String location;
        private String name;
        private String networkDeviceRole;
        private String networkDeviceSku;
        private String networkRackId;
        private String provisioningState;
        private String serialNumber;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private String type;
        private String version;
        public Builder() {}
        public Builder(GetNetworkDeviceResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.annotation = defaults.annotation;
    	      this.hostName = defaults.hostName;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.networkDeviceRole = defaults.networkDeviceRole;
    	      this.networkDeviceSku = defaults.networkDeviceSku;
    	      this.networkRackId = defaults.networkRackId;
    	      this.provisioningState = defaults.provisioningState;
    	      this.serialNumber = defaults.serialNumber;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.version = defaults.version;
        }

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

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

            this.hostName = hostName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetNetworkDeviceResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetNetworkDeviceResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetNetworkDeviceResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder networkDeviceRole(String networkDeviceRole) {
            if (networkDeviceRole == null) {
              throw new MissingRequiredPropertyException("GetNetworkDeviceResult", "networkDeviceRole");
            }
            this.networkDeviceRole = networkDeviceRole;
            return this;
        }
        @CustomType.Setter
        public Builder networkDeviceSku(String networkDeviceSku) {
            if (networkDeviceSku == null) {
              throw new MissingRequiredPropertyException("GetNetworkDeviceResult", "networkDeviceSku");
            }
            this.networkDeviceSku = networkDeviceSku;
            return this;
        }
        @CustomType.Setter
        public Builder networkRackId(String networkRackId) {
            if (networkRackId == null) {
              throw new MissingRequiredPropertyException("GetNetworkDeviceResult", "networkRackId");
            }
            this.networkRackId = networkRackId;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetNetworkDeviceResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder serialNumber(String serialNumber) {
            if (serialNumber == null) {
              throw new MissingRequiredPropertyException("GetNetworkDeviceResult", "serialNumber");
            }
            this.serialNumber = serialNumber;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetNetworkDeviceResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetNetworkDeviceResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder version(String version) {
            if (version == null) {
              throw new MissingRequiredPropertyException("GetNetworkDeviceResult", "version");
            }
            this.version = version;
            return this;
        }
        public GetNetworkDeviceResult build() {
            final var _resultValue = new GetNetworkDeviceResult();
            _resultValue.annotation = annotation;
            _resultValue.hostName = hostName;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.networkDeviceRole = networkDeviceRole;
            _resultValue.networkDeviceSku = networkDeviceSku;
            _resultValue.networkRackId = networkRackId;
            _resultValue.provisioningState = provisioningState;
            _resultValue.serialNumber = serialNumber;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy