// *** 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.gcp.iot.outputs;

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

@CustomType
public final class DeviceState {
    /**
     * @return The device state data.
     * 
     */
    private @Nullable String binaryData;
    /**
     * @return The time at which this state version was updated in Cloud IoT Core.
     * 
     */
    private @Nullable String updateTime;

    private DeviceState() {}
    /**
     * @return The device state data.
     * 
     */
    public Optional<String> binaryData() {
        return Optional.ofNullable(this.binaryData);
    }
    /**
     * @return The time at which this state version was updated in Cloud IoT Core.
     * 
     */
    public Optional<String> updateTime() {
        return Optional.ofNullable(this.updateTime);
    }

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

    public static Builder builder(DeviceState defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String binaryData;
        private @Nullable String updateTime;
        public Builder() {}
        public Builder(DeviceState defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.binaryData = defaults.binaryData;
    	      this.updateTime = defaults.updateTime;
        }

        @CustomType.Setter
        public Builder binaryData(@Nullable String binaryData) {
            this.binaryData = binaryData;
            return this;
        }
        @CustomType.Setter
        public Builder updateTime(@Nullable String updateTime) {
            this.updateTime = updateTime;
            return this;
        }
        public DeviceState build() {
            final var o = new DeviceState();
            o.binaryData = binaryData;
            o.updateTime = updateTime;
            return o;
        }
    }
}
