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

com.pulumi.googlenative.essentialcontacts.v1.FolderContact 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.googlenative.essentialcontacts.v1;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.googlenative.Utilities;
import com.pulumi.googlenative.essentialcontacts.v1.FolderContactArgs;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;

/**
 * Adds a new contact for a resource.
 * Auto-naming is currently not supported for this resource.
 * 
 */
@ResourceType(type="google-native:essentialcontacts/v1:FolderContact")
public class FolderContact extends com.pulumi.resources.CustomResource {
    /**
     * The email address to send notifications to. The email address does not need to be a Google Account.
     * 
     */
    @Export(name="email", type=String.class, parameters={})
    private Output email;

    /**
     * @return The email address to send notifications to. The email address does not need to be a Google Account.
     * 
     */
    public Output email() {
        return this.email;
    }
    @Export(name="folderId", type=String.class, parameters={})
    private Output folderId;

    public Output folderId() {
        return this.folderId;
    }
    /**
     * The preferred language for notifications, as a ISO 639-1 language code. See [Supported languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) for a list of supported languages.
     * 
     */
    @Export(name="languageTag", type=String.class, parameters={})
    private Output languageTag;

    /**
     * @return The preferred language for notifications, as a ISO 639-1 language code. See [Supported languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) for a list of supported languages.
     * 
     */
    public Output languageTag() {
        return this.languageTag;
    }
    /**
     * The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}
     * 
     */
    @Export(name="name", type=String.class, parameters={})
    private Output name;

    /**
     * @return The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}
     * 
     */
    public Output name() {
        return this.name;
    }
    /**
     * The categories of notifications that the contact will receive communications for.
     * 
     */
    @Export(name="notificationCategorySubscriptions", type=List.class, parameters={String.class})
    private Output> notificationCategorySubscriptions;

    /**
     * @return The categories of notifications that the contact will receive communications for.
     * 
     */
    public Output> notificationCategorySubscriptions() {
        return this.notificationCategorySubscriptions;
    }
    /**
     * The last time the validation_state was updated, either manually or automatically. A contact is considered stale if its validation state was updated more than 1 year ago.
     * 
     */
    @Export(name="validateTime", type=String.class, parameters={})
    private Output validateTime;

    /**
     * @return The last time the validation_state was updated, either manually or automatically. A contact is considered stale if its validation state was updated more than 1 year ago.
     * 
     */
    public Output validateTime() {
        return this.validateTime;
    }
    /**
     * The validity of the contact. A contact is considered valid if it is the correct recipient for notifications for a particular resource.
     * 
     */
    @Export(name="validationState", type=String.class, parameters={})
    private Output validationState;

    /**
     * @return The validity of the contact. A contact is considered valid if it is the correct recipient for notifications for a particular resource.
     * 
     */
    public Output validationState() {
        return this.validationState;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public FolderContact(String name) {
        this(name, FolderContactArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public FolderContact(String name, FolderContactArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public FolderContact(String name, FolderContactArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("google-native:essentialcontacts/v1:FolderContact", name, args == null ? FolderContactArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private FolderContact(String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("google-native:essentialcontacts/v1:FolderContact", name, null, makeResourceOptions(options, id));
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static FolderContact get(String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new FolderContact(name, id, options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy