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

com.pulumi.azurenative.elasticsan.outputs.IscsiTargetInfoResponse Maven / Gradle / Ivy

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

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

@CustomType
public final class IscsiTargetInfoResponse {
    /**
     * @return State of the operation on the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return Operational status of the iSCSI Target.
     * 
     */
    private @Nullable String status;
    /**
     * @return iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
     * 
     */
    private String targetIqn;
    /**
     * @return iSCSI Target Portal Host Name
     * 
     */
    private String targetPortalHostname;
    /**
     * @return iSCSI Target Portal Port
     * 
     */
    private Integer targetPortalPort;

    private IscsiTargetInfoResponse() {}
    /**
     * @return State of the operation on the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Operational status of the iSCSI Target.
     * 
     */
    public Optional status() {
        return Optional.ofNullable(this.status);
    }
    /**
     * @return iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
     * 
     */
    public String targetIqn() {
        return this.targetIqn;
    }
    /**
     * @return iSCSI Target Portal Host Name
     * 
     */
    public String targetPortalHostname() {
        return this.targetPortalHostname;
    }
    /**
     * @return iSCSI Target Portal Port
     * 
     */
    public Integer targetPortalPort() {
        return this.targetPortalPort;
    }

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

    public static Builder builder(IscsiTargetInfoResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String provisioningState;
        private @Nullable String status;
        private String targetIqn;
        private String targetPortalHostname;
        private Integer targetPortalPort;
        public Builder() {}
        public Builder(IscsiTargetInfoResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.provisioningState = defaults.provisioningState;
    	      this.status = defaults.status;
    	      this.targetIqn = defaults.targetIqn;
    	      this.targetPortalHostname = defaults.targetPortalHostname;
    	      this.targetPortalPort = defaults.targetPortalPort;
        }

        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("IscsiTargetInfoResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable String status) {

            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder targetIqn(String targetIqn) {
            if (targetIqn == null) {
              throw new MissingRequiredPropertyException("IscsiTargetInfoResponse", "targetIqn");
            }
            this.targetIqn = targetIqn;
            return this;
        }
        @CustomType.Setter
        public Builder targetPortalHostname(String targetPortalHostname) {
            if (targetPortalHostname == null) {
              throw new MissingRequiredPropertyException("IscsiTargetInfoResponse", "targetPortalHostname");
            }
            this.targetPortalHostname = targetPortalHostname;
            return this;
        }
        @CustomType.Setter
        public Builder targetPortalPort(Integer targetPortalPort) {
            if (targetPortalPort == null) {
              throw new MissingRequiredPropertyException("IscsiTargetInfoResponse", "targetPortalPort");
            }
            this.targetPortalPort = targetPortalPort;
            return this;
        }
        public IscsiTargetInfoResponse build() {
            final var _resultValue = new IscsiTargetInfoResponse();
            _resultValue.provisioningState = provisioningState;
            _resultValue.status = status;
            _resultValue.targetIqn = targetIqn;
            _resultValue.targetPortalHostname = targetPortalHostname;
            _resultValue.targetPortalPort = targetPortalPort;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy