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

com.pulumi.azurenative.customerinsights.outputs.GetViewResult Maven / Gradle / Ivy

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

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

@CustomType
public final class GetViewResult {
    /**
     * @return Date time when view was last modified.
     * 
     */
    private String changed;
    /**
     * @return Date time when view was created.
     * 
     */
    private String created;
    /**
     * @return View definition.
     * 
     */
    private String definition;
    /**
     * @return Localized display name for the view.
     * 
     */
    private @Nullable Map displayName;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return the hub name.
     * 
     */
    private String tenantId;
    /**
     * @return Resource type.
     * 
     */
    private String type;
    /**
     * @return the user ID.
     * 
     */
    private @Nullable String userId;
    /**
     * @return Name of the view.
     * 
     */
    private String viewName;

    private GetViewResult() {}
    /**
     * @return Date time when view was last modified.
     * 
     */
    public String changed() {
        return this.changed;
    }
    /**
     * @return Date time when view was created.
     * 
     */
    public String created() {
        return this.created;
    }
    /**
     * @return View definition.
     * 
     */
    public String definition() {
        return this.definition;
    }
    /**
     * @return Localized display name for the view.
     * 
     */
    public Map displayName() {
        return this.displayName == null ? Map.of() : this.displayName;
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return the hub name.
     * 
     */
    public String tenantId() {
        return this.tenantId;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return the user ID.
     * 
     */
    public Optional userId() {
        return Optional.ofNullable(this.userId);
    }
    /**
     * @return Name of the view.
     * 
     */
    public String viewName() {
        return this.viewName;
    }

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

    public static Builder builder(GetViewResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String changed;
        private String created;
        private String definition;
        private @Nullable Map displayName;
        private String id;
        private String name;
        private String tenantId;
        private String type;
        private @Nullable String userId;
        private String viewName;
        public Builder() {}
        public Builder(GetViewResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.changed = defaults.changed;
    	      this.created = defaults.created;
    	      this.definition = defaults.definition;
    	      this.displayName = defaults.displayName;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.tenantId = defaults.tenantId;
    	      this.type = defaults.type;
    	      this.userId = defaults.userId;
    	      this.viewName = defaults.viewName;
        }

        @CustomType.Setter
        public Builder changed(String changed) {
            if (changed == null) {
              throw new MissingRequiredPropertyException("GetViewResult", "changed");
            }
            this.changed = changed;
            return this;
        }
        @CustomType.Setter
        public Builder created(String created) {
            if (created == null) {
              throw new MissingRequiredPropertyException("GetViewResult", "created");
            }
            this.created = created;
            return this;
        }
        @CustomType.Setter
        public Builder definition(String definition) {
            if (definition == null) {
              throw new MissingRequiredPropertyException("GetViewResult", "definition");
            }
            this.definition = definition;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(@Nullable Map displayName) {

            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetViewResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetViewResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder tenantId(String tenantId) {
            if (tenantId == null) {
              throw new MissingRequiredPropertyException("GetViewResult", "tenantId");
            }
            this.tenantId = tenantId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetViewResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder userId(@Nullable String userId) {

            this.userId = userId;
            return this;
        }
        @CustomType.Setter
        public Builder viewName(String viewName) {
            if (viewName == null) {
              throw new MissingRequiredPropertyException("GetViewResult", "viewName");
            }
            this.viewName = viewName;
            return this;
        }
        public GetViewResult build() {
            final var _resultValue = new GetViewResult();
            _resultValue.changed = changed;
            _resultValue.created = created;
            _resultValue.definition = definition;
            _resultValue.displayName = displayName;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.tenantId = tenantId;
            _resultValue.type = type;
            _resultValue.userId = userId;
            _resultValue.viewName = viewName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy