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

com.pulumi.cloudflare.inputs.AccessServiceTokenState 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.cloudflare.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AccessServiceTokenState extends com.pulumi.resources.ResourceArgs {

    public static final AccessServiceTokenState Empty = new AccessServiceTokenState();

    /**
     * The account identifier to target for the resource. Conflicts with `zone_id`.
     * 
     */
    @Import(name="accountId")
    private @Nullable Output accountId;

    /**
     * @return The account identifier to target for the resource. Conflicts with `zone_id`.
     * 
     */
    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * UUID client ID associated with the Service Token. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    @Import(name="clientId")
    private @Nullable Output clientId;

    /**
     * @return UUID client ID associated with the Service Token. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    public Optional> clientId() {
        return Optional.ofNullable(this.clientId);
    }

    /**
     * A secret for interacting with Access protocols. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    @Import(name="clientSecret")
    private @Nullable Output clientSecret;

    /**
     * @return A secret for interacting with Access protocols. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    public Optional> clientSecret() {
        return Optional.ofNullable(this.clientSecret);
    }

    /**
     * Date when the token expires.
     * 
     */
    @Import(name="expiresAt")
    private @Nullable Output expiresAt;

    /**
     * @return Date when the token expires.
     * 
     */
    public Optional> expiresAt() {
        return Optional.ofNullable(this.expiresAt);
    }

    /**
     * Refresh the token if terraform is run within the specified amount of days before expiration
     * 
     */
    @Import(name="minDaysForRenewal")
    private @Nullable Output minDaysForRenewal;

    /**
     * @return Refresh the token if terraform is run within the specified amount of days before expiration
     * 
     */
    public Optional> minDaysForRenewal() {
        return Optional.ofNullable(this.minDaysForRenewal);
    }

    /**
     * Friendly name of the token's intent.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Friendly name of the token's intent.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The zone identifier to target for the resource. Conflicts with `account_id`.
     * 
     */
    @Import(name="zoneId")
    private @Nullable Output zoneId;

    /**
     * @return The zone identifier to target for the resource. Conflicts with `account_id`.
     * 
     */
    public Optional> zoneId() {
        return Optional.ofNullable(this.zoneId);
    }

    private AccessServiceTokenState() {}

    private AccessServiceTokenState(AccessServiceTokenState $) {
        this.accountId = $.accountId;
        this.clientId = $.clientId;
        this.clientSecret = $.clientSecret;
        this.expiresAt = $.expiresAt;
        this.minDaysForRenewal = $.minDaysForRenewal;
        this.name = $.name;
        this.zoneId = $.zoneId;
    }

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

    public static final class Builder {
        private AccessServiceTokenState $;

        public Builder() {
            $ = new AccessServiceTokenState();
        }

        public Builder(AccessServiceTokenState defaults) {
            $ = new AccessServiceTokenState(Objects.requireNonNull(defaults));
        }

        /**
         * @param accountId The account identifier to target for the resource. Conflicts with `zone_id`.
         * 
         * @return builder
         * 
         */
        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId The account identifier to target for the resource. Conflicts with `zone_id`.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param clientId UUID client ID associated with the Service Token. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder clientId(@Nullable Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId UUID client ID associated with the Service Token. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientSecret A secret for interacting with Access protocols. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(@Nullable Output clientSecret) {
            $.clientSecret = clientSecret;
            return this;
        }

        /**
         * @param clientSecret A secret for interacting with Access protocols. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(String clientSecret) {
            return clientSecret(Output.of(clientSecret));
        }

        /**
         * @param expiresAt Date when the token expires.
         * 
         * @return builder
         * 
         */
        public Builder expiresAt(@Nullable Output expiresAt) {
            $.expiresAt = expiresAt;
            return this;
        }

        /**
         * @param expiresAt Date when the token expires.
         * 
         * @return builder
         * 
         */
        public Builder expiresAt(String expiresAt) {
            return expiresAt(Output.of(expiresAt));
        }

        /**
         * @param minDaysForRenewal Refresh the token if terraform is run within the specified amount of days before expiration
         * 
         * @return builder
         * 
         */
        public Builder minDaysForRenewal(@Nullable Output minDaysForRenewal) {
            $.minDaysForRenewal = minDaysForRenewal;
            return this;
        }

        /**
         * @param minDaysForRenewal Refresh the token if terraform is run within the specified amount of days before expiration
         * 
         * @return builder
         * 
         */
        public Builder minDaysForRenewal(Integer minDaysForRenewal) {
            return minDaysForRenewal(Output.of(minDaysForRenewal));
        }

        /**
         * @param name Friendly name of the token's intent.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Friendly name of the token's intent.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param zoneId The zone identifier to target for the resource. Conflicts with `account_id`.
         * 
         * @return builder
         * 
         */
        public Builder zoneId(@Nullable Output zoneId) {
            $.zoneId = zoneId;
            return this;
        }

        /**
         * @param zoneId The zone identifier to target for the resource. Conflicts with `account_id`.
         * 
         * @return builder
         * 
         */
        public Builder zoneId(String zoneId) {
            return zoneId(Output.of(zoneId));
        }

        public AccessServiceTokenState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy