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

com.pulumi.azurenative.contoso.outputs.EmployeePropertiesResponse 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.contoso.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 EmployeePropertiesResponse {
    /**
     * @return Age of employee
     * 
     */
    private @Nullable Integer age;
    /**
     * @return City of employee
     * 
     */
    private @Nullable String city;
    /**
     * @return Profile of employee
     * 
     */
    private @Nullable String profile;
    /**
     * @return The status of the last operation.
     * 
     */
    private String provisioningState;

    private EmployeePropertiesResponse() {}
    /**
     * @return Age of employee
     * 
     */
    public Optional age() {
        return Optional.ofNullable(this.age);
    }
    /**
     * @return City of employee
     * 
     */
    public Optional city() {
        return Optional.ofNullable(this.city);
    }
    /**
     * @return Profile of employee
     * 
     */
    public Optional profile() {
        return Optional.ofNullable(this.profile);
    }
    /**
     * @return The status of the last operation.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }

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

    public static Builder builder(EmployeePropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer age;
        private @Nullable String city;
        private @Nullable String profile;
        private String provisioningState;
        public Builder() {}
        public Builder(EmployeePropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.age = defaults.age;
    	      this.city = defaults.city;
    	      this.profile = defaults.profile;
    	      this.provisioningState = defaults.provisioningState;
        }

        @CustomType.Setter
        public Builder age(@Nullable Integer age) {

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

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

            this.profile = profile;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("EmployeePropertiesResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        public EmployeePropertiesResponse build() {
            final var _resultValue = new EmployeePropertiesResponse();
            _resultValue.age = age;
            _resultValue.city = city;
            _resultValue.profile = profile;
            _resultValue.provisioningState = provisioningState;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy