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

com.pulumi.azurenative.containerregistry.outputs.EventContentResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.containerregistry.outputs.ActorResponse;
import com.pulumi.azurenative.containerregistry.outputs.RequestResponse;
import com.pulumi.azurenative.containerregistry.outputs.SourceResponse;
import com.pulumi.azurenative.containerregistry.outputs.TargetResponse;
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 EventContentResponse {
    /**
     * @return The action that encompasses the provided event.
     * 
     */
    private @Nullable String action;
    /**
     * @return The agent that initiated the event. For most situations, this could be from the authorization context of the request.
     * 
     */
    private @Nullable ActorResponse actor;
    /**
     * @return The event ID.
     * 
     */
    private @Nullable String id;
    /**
     * @return The request that generated the event.
     * 
     */
    private @Nullable RequestResponse request;
    /**
     * @return The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
     * 
     */
    private @Nullable SourceResponse source;
    /**
     * @return The target of the event.
     * 
     */
    private @Nullable TargetResponse target;
    /**
     * @return The time at which the event occurred.
     * 
     */
    private @Nullable String timestamp;

    private EventContentResponse() {}
    /**
     * @return The action that encompasses the provided event.
     * 
     */
    public Optional action() {
        return Optional.ofNullable(this.action);
    }
    /**
     * @return The agent that initiated the event. For most situations, this could be from the authorization context of the request.
     * 
     */
    public Optional actor() {
        return Optional.ofNullable(this.actor);
    }
    /**
     * @return The event ID.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return The request that generated the event.
     * 
     */
    public Optional request() {
        return Optional.ofNullable(this.request);
    }
    /**
     * @return The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
     * 
     */
    public Optional source() {
        return Optional.ofNullable(this.source);
    }
    /**
     * @return The target of the event.
     * 
     */
    public Optional target() {
        return Optional.ofNullable(this.target);
    }
    /**
     * @return The time at which the event occurred.
     * 
     */
    public Optional timestamp() {
        return Optional.ofNullable(this.timestamp);
    }

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

    public static Builder builder(EventContentResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String action;
        private @Nullable ActorResponse actor;
        private @Nullable String id;
        private @Nullable RequestResponse request;
        private @Nullable SourceResponse source;
        private @Nullable TargetResponse target;
        private @Nullable String timestamp;
        public Builder() {}
        public Builder(EventContentResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.actor = defaults.actor;
    	      this.id = defaults.id;
    	      this.request = defaults.request;
    	      this.source = defaults.source;
    	      this.target = defaults.target;
    	      this.timestamp = defaults.timestamp;
        }

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

            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder actor(@Nullable ActorResponse actor) {

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

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder request(@Nullable RequestResponse request) {

            this.request = request;
            return this;
        }
        @CustomType.Setter
        public Builder source(@Nullable SourceResponse source) {

            this.source = source;
            return this;
        }
        @CustomType.Setter
        public Builder target(@Nullable TargetResponse target) {

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

            this.timestamp = timestamp;
            return this;
        }
        public EventContentResponse build() {
            final var _resultValue = new EventContentResponse();
            _resultValue.action = action;
            _resultValue.actor = actor;
            _resultValue.id = id;
            _resultValue.request = request;
            _resultValue.source = source;
            _resultValue.target = target;
            _resultValue.timestamp = timestamp;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy