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

com.pulumi.azurenative.eventgrid.outputs.GetClientResult 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.eventgrid.outputs;

import com.pulumi.azurenative.eventgrid.outputs.ClientAuthenticationResponse;
import com.pulumi.azurenative.eventgrid.outputs.ClientCertificateAuthenticationResponse;
import com.pulumi.azurenative.eventgrid.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetClientResult {
    /**
     * @return Attributes for the client. Supported values are int, bool, string, string[].
     * Example:
     * "attributes": { "room": "345", "floor": 12, "deviceTypes": ["Fan", "Light"] }
     * 
     */
    private @Nullable Object attributes;
    /**
     * @return Authentication information for the client.
     * 
     */
    private @Nullable ClientAuthenticationResponse authentication;
    /**
     * @return The name presented by the client for authentication. The default value is the name of the resource.
     * 
     */
    private @Nullable String authenticationName;
    /**
     * @return The client certificate authentication information.
     * 
     */
    private @Nullable ClientCertificateAuthenticationResponse clientCertificateAuthentication;
    /**
     * @return Description for the Client resource.
     * 
     */
    private @Nullable String description;
    /**
     * @return Fully qualified identifier of the resource.
     * 
     */
    private String id;
    /**
     * @return Name of the resource.
     * 
     */
    private String name;
    /**
     * @return Provisioning state of the Client resource.
     * 
     */
    private String provisioningState;
    /**
     * @return Indicates if the client is enabled or not. Default value is Enabled.
     * 
     */
    private @Nullable String state;
    /**
     * @return The system metadata relating to the Client resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Type of the resource.
     * 
     */
    private String type;

    private GetClientResult() {}
    /**
     * @return Attributes for the client. Supported values are int, bool, string, string[].
     * Example:
     * "attributes": { "room": "345", "floor": 12, "deviceTypes": ["Fan", "Light"] }
     * 
     */
    public Optional attributes() {
        return Optional.ofNullable(this.attributes);
    }
    /**
     * @return Authentication information for the client.
     * 
     */
    public Optional authentication() {
        return Optional.ofNullable(this.authentication);
    }
    /**
     * @return The name presented by the client for authentication. The default value is the name of the resource.
     * 
     */
    public Optional authenticationName() {
        return Optional.ofNullable(this.authenticationName);
    }
    /**
     * @return The client certificate authentication information.
     * 
     */
    public Optional clientCertificateAuthentication() {
        return Optional.ofNullable(this.clientCertificateAuthentication);
    }
    /**
     * @return Description for the Client resource.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Fully qualified identifier of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Provisioning state of the Client resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Indicates if the client is enabled or not. Default value is Enabled.
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }
    /**
     * @return The system metadata relating to the Client resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetClientResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object attributes;
        private @Nullable ClientAuthenticationResponse authentication;
        private @Nullable String authenticationName;
        private @Nullable ClientCertificateAuthenticationResponse clientCertificateAuthentication;
        private @Nullable String description;
        private String id;
        private String name;
        private String provisioningState;
        private @Nullable String state;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetClientResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.attributes = defaults.attributes;
    	      this.authentication = defaults.authentication;
    	      this.authenticationName = defaults.authenticationName;
    	      this.clientCertificateAuthentication = defaults.clientCertificateAuthentication;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.state = defaults.state;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder attributes(@Nullable Object attributes) {

            this.attributes = attributes;
            return this;
        }
        @CustomType.Setter
        public Builder authentication(@Nullable ClientAuthenticationResponse authentication) {

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

            this.authenticationName = authenticationName;
            return this;
        }
        @CustomType.Setter
        public Builder clientCertificateAuthentication(@Nullable ClientCertificateAuthenticationResponse clientCertificateAuthentication) {

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

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetClientResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetClientResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetClientResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder state(@Nullable String state) {

            this.state = state;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetClientResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetClientResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetClientResult build() {
            final var _resultValue = new GetClientResult();
            _resultValue.attributes = attributes;
            _resultValue.authentication = authentication;
            _resultValue.authenticationName = authenticationName;
            _resultValue.clientCertificateAuthentication = clientCertificateAuthentication;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.state = state;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}