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

com.pulumi.azurenative.containerregistry.outputs.SourceResponse 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.containerregistry.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 SourceResponse {
    /**
     * @return The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port.
     * 
     */
    private @Nullable String addr;
    /**
     * @return The running instance of an application. Changes after each restart.
     * 
     */
    private @Nullable String instanceID;

    private SourceResponse() {}
    /**
     * @return The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port.
     * 
     */
    public Optional addr() {
        return Optional.ofNullable(this.addr);
    }
    /**
     * @return The running instance of an application. Changes after each restart.
     * 
     */
    public Optional instanceID() {
        return Optional.ofNullable(this.instanceID);
    }

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

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

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

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

            this.instanceID = instanceID;
            return this;
        }
        public SourceResponse build() {
            final var _resultValue = new SourceResponse();
            _resultValue.addr = addr;
            _resultValue.instanceID = instanceID;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy