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

com.pulumi.azurenative.securityinsights.outputs.GetWatchlistItemResult 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.securityinsights.outputs;

import com.pulumi.azurenative.securityinsights.outputs.SystemDataResponse;
import com.pulumi.azurenative.securityinsights.outputs.WatchlistUserInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetWatchlistItemResult {
    /**
     * @return The time the watchlist item was created
     * 
     */
    private @Nullable String created;
    /**
     * @return Describes a user that created the watchlist item
     * 
     */
    private @Nullable WatchlistUserInfoResponse createdBy;
    /**
     * @return key-value pairs for a watchlist item entity mapping
     * 
     */
    private @Nullable Object entityMapping;
    /**
     * @return Etag of the azure resource
     * 
     */
    private @Nullable String etag;
    /**
     * @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
     * 
     */
    private String id;
    /**
     * @return A flag that indicates if the watchlist item is deleted or not
     * 
     */
    private @Nullable Boolean isDeleted;
    /**
     * @return key-value pairs for a watchlist item
     * 
     */
    private Object itemsKeyValue;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The tenantId to which the watchlist item belongs to
     * 
     */
    private @Nullable String tenantId;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;
    /**
     * @return The last time the watchlist item was updated
     * 
     */
    private @Nullable String updated;
    /**
     * @return Describes a user that updated the watchlist item
     * 
     */
    private @Nullable WatchlistUserInfoResponse updatedBy;
    /**
     * @return The id (a Guid) of the watchlist item
     * 
     */
    private @Nullable String watchlistItemId;
    /**
     * @return The type of the watchlist item
     * 
     */
    private @Nullable String watchlistItemType;

    private GetWatchlistItemResult() {}
    /**
     * @return The time the watchlist item was created
     * 
     */
    public Optional created() {
        return Optional.ofNullable(this.created);
    }
    /**
     * @return Describes a user that created the watchlist item
     * 
     */
    public Optional createdBy() {
        return Optional.ofNullable(this.createdBy);
    }
    /**
     * @return key-value pairs for a watchlist item entity mapping
     * 
     */
    public Optional entityMapping() {
        return Optional.ofNullable(this.entityMapping);
    }
    /**
     * @return Etag of the azure resource
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return A flag that indicates if the watchlist item is deleted or not
     * 
     */
    public Optional isDeleted() {
        return Optional.ofNullable(this.isDeleted);
    }
    /**
     * @return key-value pairs for a watchlist item
     * 
     */
    public Object itemsKeyValue() {
        return this.itemsKeyValue;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The tenantId to which the watchlist item belongs to
     * 
     */
    public Optional tenantId() {
        return Optional.ofNullable(this.tenantId);
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The last time the watchlist item was updated
     * 
     */
    public Optional updated() {
        return Optional.ofNullable(this.updated);
    }
    /**
     * @return Describes a user that updated the watchlist item
     * 
     */
    public Optional updatedBy() {
        return Optional.ofNullable(this.updatedBy);
    }
    /**
     * @return The id (a Guid) of the watchlist item
     * 
     */
    public Optional watchlistItemId() {
        return Optional.ofNullable(this.watchlistItemId);
    }
    /**
     * @return The type of the watchlist item
     * 
     */
    public Optional watchlistItemType() {
        return Optional.ofNullable(this.watchlistItemType);
    }

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

    public static Builder builder(GetWatchlistItemResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String created;
        private @Nullable WatchlistUserInfoResponse createdBy;
        private @Nullable Object entityMapping;
        private @Nullable String etag;
        private String id;
        private @Nullable Boolean isDeleted;
        private Object itemsKeyValue;
        private String name;
        private SystemDataResponse systemData;
        private @Nullable String tenantId;
        private String type;
        private @Nullable String updated;
        private @Nullable WatchlistUserInfoResponse updatedBy;
        private @Nullable String watchlistItemId;
        private @Nullable String watchlistItemType;
        public Builder() {}
        public Builder(GetWatchlistItemResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.created = defaults.created;
    	      this.createdBy = defaults.createdBy;
    	      this.entityMapping = defaults.entityMapping;
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.isDeleted = defaults.isDeleted;
    	      this.itemsKeyValue = defaults.itemsKeyValue;
    	      this.name = defaults.name;
    	      this.systemData = defaults.systemData;
    	      this.tenantId = defaults.tenantId;
    	      this.type = defaults.type;
    	      this.updated = defaults.updated;
    	      this.updatedBy = defaults.updatedBy;
    	      this.watchlistItemId = defaults.watchlistItemId;
    	      this.watchlistItemType = defaults.watchlistItemType;
        }

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

            this.created = created;
            return this;
        }
        @CustomType.Setter
        public Builder createdBy(@Nullable WatchlistUserInfoResponse createdBy) {

            this.createdBy = createdBy;
            return this;
        }
        @CustomType.Setter
        public Builder entityMapping(@Nullable Object entityMapping) {

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

            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetWatchlistItemResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder isDeleted(@Nullable Boolean isDeleted) {

            this.isDeleted = isDeleted;
            return this;
        }
        @CustomType.Setter
        public Builder itemsKeyValue(Object itemsKeyValue) {
            if (itemsKeyValue == null) {
              throw new MissingRequiredPropertyException("GetWatchlistItemResult", "itemsKeyValue");
            }
            this.itemsKeyValue = itemsKeyValue;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetWatchlistItemResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetWatchlistItemResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tenantId(@Nullable String tenantId) {

            this.tenantId = tenantId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetWatchlistItemResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder updated(@Nullable String updated) {

            this.updated = updated;
            return this;
        }
        @CustomType.Setter
        public Builder updatedBy(@Nullable WatchlistUserInfoResponse updatedBy) {

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

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

            this.watchlistItemType = watchlistItemType;
            return this;
        }
        public GetWatchlistItemResult build() {
            final var _resultValue = new GetWatchlistItemResult();
            _resultValue.created = created;
            _resultValue.createdBy = createdBy;
            _resultValue.entityMapping = entityMapping;
            _resultValue.etag = etag;
            _resultValue.id = id;
            _resultValue.isDeleted = isDeleted;
            _resultValue.itemsKeyValue = itemsKeyValue;
            _resultValue.name = name;
            _resultValue.systemData = systemData;
            _resultValue.tenantId = tenantId;
            _resultValue.type = type;
            _resultValue.updated = updated;
            _resultValue.updatedBy = updatedBy;
            _resultValue.watchlistItemId = watchlistItemId;
            _resultValue.watchlistItemType = watchlistItemType;
            return _resultValue;
        }
    }
}