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

com.pulumi.googlenative.jobs.v4.kotlin.JobArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.jobs.v4.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.jobs.v4.JobArgs.builder
import com.pulumi.googlenative.jobs.v4.kotlin.enums.JobDegreeTypesItem
import com.pulumi.googlenative.jobs.v4.kotlin.enums.JobEmploymentTypesItem
import com.pulumi.googlenative.jobs.v4.kotlin.enums.JobJobBenefitsItem
import com.pulumi.googlenative.jobs.v4.kotlin.enums.JobJobLevel
import com.pulumi.googlenative.jobs.v4.kotlin.enums.JobPostingRegion
import com.pulumi.googlenative.jobs.v4.kotlin.enums.JobVisibility
import com.pulumi.googlenative.jobs.v4.kotlin.inputs.ApplicationInfoArgs
import com.pulumi.googlenative.jobs.v4.kotlin.inputs.ApplicationInfoArgsBuilder
import com.pulumi.googlenative.jobs.v4.kotlin.inputs.CompensationInfoArgs
import com.pulumi.googlenative.jobs.v4.kotlin.inputs.CompensationInfoArgsBuilder
import com.pulumi.googlenative.jobs.v4.kotlin.inputs.ProcessingOptionsArgs
import com.pulumi.googlenative.jobs.v4.kotlin.inputs.ProcessingOptionsArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Deprecated
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Creates a new job. Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.
 * @property addresses Strongly recommended for the best service experience. Location(s) where the employer is looking to hire for this job posting. Specifying the full street address(es) of the hiring location enables better API results, especially job searches by commute time. At most 50 locations are allowed for best search performance. If a job has more locations, it is suggested to split it into multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', and so on.) as multiple jobs with the same company, language_code and requisition_id are not allowed. If the original requisition_id must be preserved, a custom field should be used for storage. It is also suggested to group the locations that close to each other in the same job for better search experience. Jobs with multiple addresses must have their addresses with the same LocationType to allow location filtering to work properly. (For example, a Job with addresses "1600 Amphitheatre Parkway, Mountain View, CA, USA" and "London, UK" may not have location filters applied correctly at search time since the first is a LocationType.STREET_ADDRESS and the second is a LocationType.LOCALITY.) If a job needs to have multiple addresses, it is suggested to split it into multiple jobs with same LocationTypes. The maximum number of allowed characters is 500.
 * @property applicationInfo Job application information.
 * @property company The resource name of the company listing the job. The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". For example, "projects/foo/tenants/bar/companies/baz".
 * @property compensationInfo Job compensation information (a.k.a. "pay rate") i.e., the compensation that will paid to the employee.
 * @property customAttributes A map of fields to hold both filterable and non-filterable custom job attributes that are not covered by the provided structured fields. The keys of the map are strings up to 64 bytes and must match the pattern: `a-zA-Z*`. For example, key0LikeThis or KEY_1_LIKE_THIS. At most 100 filterable and at most 100 unfilterable keys are supported. For filterable `string_values`, across all keys at most 200 values are allowed, with each string no more than 255 characters. For unfilterable `string_values`, the maximum total size of `string_values` across all keys is 50KB.
 * @property degreeTypes The desired education degrees for the job, such as Bachelors, Masters.
 * @property department The department or functional area within the company with the open position. The maximum number of allowed characters is 255.
 * @property description The description of the job, which typically includes a multi-paragraph description of the company and related information. Separate fields are provided on the job object for responsibilities, qualifications, and other job characteristics. Use of these separate job fields is recommended. This field accepts and sanitizes HTML input, and also accepts bold, italic, ordered list, and unordered list markup tags. The maximum number of allowed characters is 100,000.
 * @property employmentTypes The employment type(s) of a job, for example, full time or part time.
 * @property incentives A description of bonus, commission, and other compensation incentives associated with the job not including salary or pay. The maximum number of allowed characters is 10,000.
 * @property jobBenefits The benefits included with the job.
 * @property jobEndTime The end timestamp of the job. Typically this field is used for contracting engagements. Invalid timestamps are ignored.
 * @property jobLevel The experience level associated with the job, such as "Entry Level".
 * @property jobStartTime The start timestamp of the job in UTC time zone. Typically this field is used for contracting engagements. Invalid timestamps are ignored.
 * @property languageCode The language of the posting. This field is distinct from any requirements for fluency that are associated with the job. Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: class="external" target="_blank" }. If this field is unspecified and Job.description is present, detected language code based on Job.description is assigned, otherwise defaults to 'en_US'.
 * @property name Required during job update. The resource name for the job. This is generated by the service when a job is created. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". Use of this field in job queries and API calls is preferred over the use of requisition_id since this value is unique.
 * @property postingExpireTime Strongly recommended for the best service experience. The expiration timestamp of the job. After this timestamp, the job is marked as expired, and it no longer appears in search results. The expired job can't be listed by the ListJobs API, but it can be retrieved with the GetJob API or updated with the UpdateJob API or deleted with the DeleteJob API. An expired job can be updated and opened again by using a future expiration timestamp. Updating an expired job fails if there is another existing open job with same company, language_code and requisition_id. The expired jobs are retained in our system for 90 days. However, the overall expired job count cannot exceed 3 times the maximum number of open jobs over previous 7 days. If this threshold is exceeded, expired jobs are cleaned out in order of earliest expire time. Expired jobs are no longer accessible after they are cleaned out. Invalid timestamps are ignored, and treated as expire time not provided. If the timestamp is before the instant request is made, the job is treated as expired immediately on creation. This kind of job can not be updated. And when creating a job with past timestamp, the posting_publish_time must be set before posting_expire_time. The purpose of this feature is to allow other objects, such as Application, to refer a job that didn't exist in the system prior to becoming expired. If you want to modify a job that was expired on creation, delete it and create a new one. If this value isn't provided at the time of job creation or is invalid, the job posting expires after 30 days from the job's creation time. For example, if the job was created on 2017/01/01 13:00AM UTC with an unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC. If this value isn't provided on job update, it depends on the field masks set by UpdateJobRequest.update_mask. If the field masks include job_end_time, or the masks are empty meaning that every field is updated, the job posting expires after 30 days from the job's last update time. Otherwise the expiration date isn't updated.
 * @property postingPublishTime The timestamp this job posting was most recently published. The default value is the time the request arrives at the server. Invalid timestamps are ignored.
 * @property postingRegion The job PostingRegion (for example, state, country) throughout which the job is available. If this field is set, a LocationFilter in a search query within the job region finds this job posting if an exact location match isn't specified. If this field is set to PostingRegion.NATION or PostingRegion.ADMINISTRATIVE_AREA, setting job Job.addresses to the same location level as this field is strongly recommended.
 * @property processingOptions Options for job processing.
 * @property project
 * @property promotionValue A promotion value of the job, as determined by the client. The value determines the sort order of the jobs returned when searching for jobs using the featured jobs search call, with higher promotional values being returned first and ties being resolved by relevance sort. Only the jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH. Default value is 0, and negative values are treated as 0.
 * @property qualifications A description of the qualifications required to perform the job. The use of this field is recommended as an alternative to using the more general description field. This field accepts and sanitizes HTML input, and also accepts bold, italic, ordered list, and unordered list markup tags. The maximum number of allowed characters is 10,000.
 * @property requisitionId The requisition ID, also referred to as the posting ID, is assigned by the client to identify a job. This field is intended to be used by clients for client identification and tracking of postings. A job isn't allowed to be created if there is another job with the same company, language_code and requisition_id. The maximum number of allowed characters is 255.
 * @property responsibilities A description of job responsibilities. The use of this field is recommended as an alternative to using the more general description field. This field accepts and sanitizes HTML input, and also accepts bold, italic, ordered list, and unordered list markup tags. The maximum number of allowed characters is 10,000.
 * @property tenantId
 * @property title The title of the job, such as "Software Engineer" The maximum number of allowed characters is 500.
 * @property visibility Deprecated. The job is only visible to the owner. The visibility of the job. Defaults to Visibility.ACCOUNT_ONLY if not specified.
 */
public data class JobArgs(
    public val addresses: Output>? = null,
    public val applicationInfo: Output? = null,
    public val company: Output? = null,
    public val compensationInfo: Output? = null,
    public val customAttributes: Output>? = null,
    public val degreeTypes: Output>? = null,
    public val department: Output? = null,
    public val description: Output? = null,
    public val employmentTypes: Output>? = null,
    public val incentives: Output? = null,
    public val jobBenefits: Output>? = null,
    public val jobEndTime: Output? = null,
    public val jobLevel: Output? = null,
    public val jobStartTime: Output? = null,
    public val languageCode: Output? = null,
    public val name: Output? = null,
    public val postingExpireTime: Output? = null,
    public val postingPublishTime: Output? = null,
    public val postingRegion: Output? = null,
    public val processingOptions: Output? = null,
    public val project: Output? = null,
    public val promotionValue: Output? = null,
    public val qualifications: Output? = null,
    public val requisitionId: Output? = null,
    public val responsibilities: Output? = null,
    public val tenantId: Output? = null,
    public val title: Output? = null,
    @Deprecated(
        message = """
  Deprecated. The job is only visible to the owner. The visibility of the job. Defaults to
      Visibility.ACCOUNT_ONLY if not specified.
  """,
    )
    public val visibility: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.jobs.v4.JobArgs =
        com.pulumi.googlenative.jobs.v4.JobArgs.builder()
            .addresses(addresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .applicationInfo(applicationInfo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .company(company?.applyValue({ args0 -> args0 }))
            .compensationInfo(compensationInfo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .customAttributes(
                customAttributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .degreeTypes(
                degreeTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .department(department?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .employmentTypes(
                employmentTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .incentives(incentives?.applyValue({ args0 -> args0 }))
            .jobBenefits(
                jobBenefits?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .jobEndTime(jobEndTime?.applyValue({ args0 -> args0 }))
            .jobLevel(jobLevel?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .jobStartTime(jobStartTime?.applyValue({ args0 -> args0 }))
            .languageCode(languageCode?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .postingExpireTime(postingExpireTime?.applyValue({ args0 -> args0 }))
            .postingPublishTime(postingPublishTime?.applyValue({ args0 -> args0 }))
            .postingRegion(postingRegion?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .processingOptions(processingOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .project(project?.applyValue({ args0 -> args0 }))
            .promotionValue(promotionValue?.applyValue({ args0 -> args0 }))
            .qualifications(qualifications?.applyValue({ args0 -> args0 }))
            .requisitionId(requisitionId?.applyValue({ args0 -> args0 }))
            .responsibilities(responsibilities?.applyValue({ args0 -> args0 }))
            .tenantId(tenantId?.applyValue({ args0 -> args0 }))
            .title(title?.applyValue({ args0 -> args0 }))
            .visibility(visibility?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [JobArgs].
 */
@PulumiTagMarker
public class JobArgsBuilder internal constructor() {
    private var addresses: Output>? = null

    private var applicationInfo: Output? = null

    private var company: Output? = null

    private var compensationInfo: Output? = null

    private var customAttributes: Output>? = null

    private var degreeTypes: Output>? = null

    private var department: Output? = null

    private var description: Output? = null

    private var employmentTypes: Output>? = null

    private var incentives: Output? = null

    private var jobBenefits: Output>? = null

    private var jobEndTime: Output? = null

    private var jobLevel: Output? = null

    private var jobStartTime: Output? = null

    private var languageCode: Output? = null

    private var name: Output? = null

    private var postingExpireTime: Output? = null

    private var postingPublishTime: Output? = null

    private var postingRegion: Output? = null

    private var processingOptions: Output? = null

    private var project: Output? = null

    private var promotionValue: Output? = null

    private var qualifications: Output? = null

    private var requisitionId: Output? = null

    private var responsibilities: Output? = null

    private var tenantId: Output? = null

    private var title: Output? = null

    private var visibility: Output? = null

    /**
     * @param value Strongly recommended for the best service experience. Location(s) where the employer is looking to hire for this job posting. Specifying the full street address(es) of the hiring location enables better API results, especially job searches by commute time. At most 50 locations are allowed for best search performance. If a job has more locations, it is suggested to split it into multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', and so on.) as multiple jobs with the same company, language_code and requisition_id are not allowed. If the original requisition_id must be preserved, a custom field should be used for storage. It is also suggested to group the locations that close to each other in the same job for better search experience. Jobs with multiple addresses must have their addresses with the same LocationType to allow location filtering to work properly. (For example, a Job with addresses "1600 Amphitheatre Parkway, Mountain View, CA, USA" and "London, UK" may not have location filters applied correctly at search time since the first is a LocationType.STREET_ADDRESS and the second is a LocationType.LOCALITY.) If a job needs to have multiple addresses, it is suggested to split it into multiple jobs with same LocationTypes. The maximum number of allowed characters is 500.
     */
    @JvmName("wmsslhwnktluhnfh")
    public suspend fun addresses(`value`: Output>) {
        this.addresses = value
    }

    @JvmName("kfuigffsbxuyswrm")
    public suspend fun addresses(vararg values: Output) {
        this.addresses = Output.all(values.asList())
    }

    /**
     * @param values Strongly recommended for the best service experience. Location(s) where the employer is looking to hire for this job posting. Specifying the full street address(es) of the hiring location enables better API results, especially job searches by commute time. At most 50 locations are allowed for best search performance. If a job has more locations, it is suggested to split it into multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', and so on.) as multiple jobs with the same company, language_code and requisition_id are not allowed. If the original requisition_id must be preserved, a custom field should be used for storage. It is also suggested to group the locations that close to each other in the same job for better search experience. Jobs with multiple addresses must have their addresses with the same LocationType to allow location filtering to work properly. (For example, a Job with addresses "1600 Amphitheatre Parkway, Mountain View, CA, USA" and "London, UK" may not have location filters applied correctly at search time since the first is a LocationType.STREET_ADDRESS and the second is a LocationType.LOCALITY.) If a job needs to have multiple addresses, it is suggested to split it into multiple jobs with same LocationTypes. The maximum number of allowed characters is 500.
     */
    @JvmName("vhqmpqywqvmgvist")
    public suspend fun addresses(values: List>) {
        this.addresses = Output.all(values)
    }

    /**
     * @param value Job application information.
     */
    @JvmName("ihqdcyvjfydsdvgn")
    public suspend fun applicationInfo(`value`: Output) {
        this.applicationInfo = value
    }

    /**
     * @param value The resource name of the company listing the job. The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". For example, "projects/foo/tenants/bar/companies/baz".
     */
    @JvmName("vslffwniqoyevmxj")
    public suspend fun company(`value`: Output) {
        this.company = value
    }

    /**
     * @param value Job compensation information (a.k.a. "pay rate") i.e., the compensation that will paid to the employee.
     */
    @JvmName("ykwesjlvjamubcxr")
    public suspend fun compensationInfo(`value`: Output) {
        this.compensationInfo = value
    }

    /**
     * @param value A map of fields to hold both filterable and non-filterable custom job attributes that are not covered by the provided structured fields. The keys of the map are strings up to 64 bytes and must match the pattern: `a-zA-Z*`. For example, key0LikeThis or KEY_1_LIKE_THIS. At most 100 filterable and at most 100 unfilterable keys are supported. For filterable `string_values`, across all keys at most 200 values are allowed, with each string no more than 255 characters. For unfilterable `string_values`, the maximum total size of `string_values` across all keys is 50KB.
     */
    @JvmName("jtnshjsdhwbnhxui")
    public suspend fun customAttributes(`value`: Output>) {
        this.customAttributes = value
    }

    /**
     * @param value The desired education degrees for the job, such as Bachelors, Masters.
     */
    @JvmName("jwhyalnvvesafwvm")
    public suspend fun degreeTypes(`value`: Output>) {
        this.degreeTypes = value
    }

    @JvmName("ovfshpacnqykptew")
    public suspend fun degreeTypes(vararg values: Output) {
        this.degreeTypes = Output.all(values.asList())
    }

    /**
     * @param values The desired education degrees for the job, such as Bachelors, Masters.
     */
    @JvmName("wandituspvnhwibl")
    public suspend fun degreeTypes(values: List>) {
        this.degreeTypes = Output.all(values)
    }

    /**
     * @param value The department or functional area within the company with the open position. The maximum number of allowed characters is 255.
     */
    @JvmName("ljsrluethkcgapcf")
    public suspend fun department(`value`: Output) {
        this.department = value
    }

    /**
     * @param value The description of the job, which typically includes a multi-paragraph description of the company and related information. Separate fields are provided on the job object for responsibilities, qualifications, and other job characteristics. Use of these separate job fields is recommended. This field accepts and sanitizes HTML input, and also accepts bold, italic, ordered list, and unordered list markup tags. The maximum number of allowed characters is 100,000.
     */
    @JvmName("gtrbjneoxfhiscdk")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The employment type(s) of a job, for example, full time or part time.
     */
    @JvmName("gwnmsqssbamrbafd")
    public suspend fun employmentTypes(`value`: Output>) {
        this.employmentTypes = value
    }

    @JvmName("xgtnmgkayuomfdvw")
    public suspend fun employmentTypes(vararg values: Output) {
        this.employmentTypes = Output.all(values.asList())
    }

    /**
     * @param values The employment type(s) of a job, for example, full time or part time.
     */
    @JvmName("tnarkaovgdtguneg")
    public suspend fun employmentTypes(values: List>) {
        this.employmentTypes = Output.all(values)
    }

    /**
     * @param value A description of bonus, commission, and other compensation incentives associated with the job not including salary or pay. The maximum number of allowed characters is 10,000.
     */
    @JvmName("hfdovylswtnmdilq")
    public suspend fun incentives(`value`: Output) {
        this.incentives = value
    }

    /**
     * @param value The benefits included with the job.
     */
    @JvmName("ygalgbyeubrjsbrl")
    public suspend fun jobBenefits(`value`: Output>) {
        this.jobBenefits = value
    }

    @JvmName("gapnoovshvepmsms")
    public suspend fun jobBenefits(vararg values: Output) {
        this.jobBenefits = Output.all(values.asList())
    }

    /**
     * @param values The benefits included with the job.
     */
    @JvmName("xjofaconirndcpmx")
    public suspend fun jobBenefits(values: List>) {
        this.jobBenefits = Output.all(values)
    }

    /**
     * @param value The end timestamp of the job. Typically this field is used for contracting engagements. Invalid timestamps are ignored.
     */
    @JvmName("gjphirdmxlveinql")
    public suspend fun jobEndTime(`value`: Output) {
        this.jobEndTime = value
    }

    /**
     * @param value The experience level associated with the job, such as "Entry Level".
     */
    @JvmName("iovuvwvjksxplxpx")
    public suspend fun jobLevel(`value`: Output) {
        this.jobLevel = value
    }

    /**
     * @param value The start timestamp of the job in UTC time zone. Typically this field is used for contracting engagements. Invalid timestamps are ignored.
     */
    @JvmName("otouaykvgjjnmbrk")
    public suspend fun jobStartTime(`value`: Output) {
        this.jobStartTime = value
    }

    /**
     * @param value The language of the posting. This field is distinct from any requirements for fluency that are associated with the job. Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: class="external" target="_blank" }. If this field is unspecified and Job.description is present, detected language code based on Job.description is assigned, otherwise defaults to 'en_US'.
     */
    @JvmName("hicspvpjearcnivp")
    public suspend fun languageCode(`value`: Output) {
        this.languageCode = value
    }

    /**
     * @param value Required during job update. The resource name for the job. This is generated by the service when a job is created. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". Use of this field in job queries and API calls is preferred over the use of requisition_id since this value is unique.
     */
    @JvmName("gxqwjlwucbnamuft")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Strongly recommended for the best service experience. The expiration timestamp of the job. After this timestamp, the job is marked as expired, and it no longer appears in search results. The expired job can't be listed by the ListJobs API, but it can be retrieved with the GetJob API or updated with the UpdateJob API or deleted with the DeleteJob API. An expired job can be updated and opened again by using a future expiration timestamp. Updating an expired job fails if there is another existing open job with same company, language_code and requisition_id. The expired jobs are retained in our system for 90 days. However, the overall expired job count cannot exceed 3 times the maximum number of open jobs over previous 7 days. If this threshold is exceeded, expired jobs are cleaned out in order of earliest expire time. Expired jobs are no longer accessible after they are cleaned out. Invalid timestamps are ignored, and treated as expire time not provided. If the timestamp is before the instant request is made, the job is treated as expired immediately on creation. This kind of job can not be updated. And when creating a job with past timestamp, the posting_publish_time must be set before posting_expire_time. The purpose of this feature is to allow other objects, such as Application, to refer a job that didn't exist in the system prior to becoming expired. If you want to modify a job that was expired on creation, delete it and create a new one. If this value isn't provided at the time of job creation or is invalid, the job posting expires after 30 days from the job's creation time. For example, if the job was created on 2017/01/01 13:00AM UTC with an unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC. If this value isn't provided on job update, it depends on the field masks set by UpdateJobRequest.update_mask. If the field masks include job_end_time, or the masks are empty meaning that every field is updated, the job posting expires after 30 days from the job's last update time. Otherwise the expiration date isn't updated.
     */
    @JvmName("hldwwlkhdadxmxkp")
    public suspend fun postingExpireTime(`value`: Output) {
        this.postingExpireTime = value
    }

    /**
     * @param value The timestamp this job posting was most recently published. The default value is the time the request arrives at the server. Invalid timestamps are ignored.
     */
    @JvmName("rrtasyfbsvjjdfhq")
    public suspend fun postingPublishTime(`value`: Output) {
        this.postingPublishTime = value
    }

    /**
     * @param value The job PostingRegion (for example, state, country) throughout which the job is available. If this field is set, a LocationFilter in a search query within the job region finds this job posting if an exact location match isn't specified. If this field is set to PostingRegion.NATION or PostingRegion.ADMINISTRATIVE_AREA, setting job Job.addresses to the same location level as this field is strongly recommended.
     */
    @JvmName("ixfmumtgoboptngb")
    public suspend fun postingRegion(`value`: Output) {
        this.postingRegion = value
    }

    /**
     * @param value Options for job processing.
     */
    @JvmName("wwsfwjmpnnoflscf")
    public suspend fun processingOptions(`value`: Output) {
        this.processingOptions = value
    }

    /**
     * @param value
     */
    @JvmName("pbwtntodecpnsshw")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value A promotion value of the job, as determined by the client. The value determines the sort order of the jobs returned when searching for jobs using the featured jobs search call, with higher promotional values being returned first and ties being resolved by relevance sort. Only the jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH. Default value is 0, and negative values are treated as 0.
     */
    @JvmName("ytbpfpooumiauotv")
    public suspend fun promotionValue(`value`: Output) {
        this.promotionValue = value
    }

    /**
     * @param value A description of the qualifications required to perform the job. The use of this field is recommended as an alternative to using the more general description field. This field accepts and sanitizes HTML input, and also accepts bold, italic, ordered list, and unordered list markup tags. The maximum number of allowed characters is 10,000.
     */
    @JvmName("yulsaakosftwuopf")
    public suspend fun qualifications(`value`: Output) {
        this.qualifications = value
    }

    /**
     * @param value The requisition ID, also referred to as the posting ID, is assigned by the client to identify a job. This field is intended to be used by clients for client identification and tracking of postings. A job isn't allowed to be created if there is another job with the same company, language_code and requisition_id. The maximum number of allowed characters is 255.
     */
    @JvmName("cjowixtjnnnwrhbg")
    public suspend fun requisitionId(`value`: Output) {
        this.requisitionId = value
    }

    /**
     * @param value A description of job responsibilities. The use of this field is recommended as an alternative to using the more general description field. This field accepts and sanitizes HTML input, and also accepts bold, italic, ordered list, and unordered list markup tags. The maximum number of allowed characters is 10,000.
     */
    @JvmName("gmigddhuqnibybpe")
    public suspend fun responsibilities(`value`: Output) {
        this.responsibilities = value
    }

    /**
     * @param value
     */
    @JvmName("hkiehnrrtwspqxry")
    public suspend fun tenantId(`value`: Output) {
        this.tenantId = value
    }

    /**
     * @param value The title of the job, such as "Software Engineer" The maximum number of allowed characters is 500.
     */
    @JvmName("clbxqxssscwgoqmf")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value Deprecated. The job is only visible to the owner. The visibility of the job. Defaults to Visibility.ACCOUNT_ONLY if not specified.
     */
    @Deprecated(
        message = """
  Deprecated. The job is only visible to the owner. The visibility of the job. Defaults to
      Visibility.ACCOUNT_ONLY if not specified.
  """,
    )
    @JvmName("yorfgakcjcaglurx")
    public suspend fun visibility(`value`: Output) {
        this.visibility = value
    }

    /**
     * @param value Strongly recommended for the best service experience. Location(s) where the employer is looking to hire for this job posting. Specifying the full street address(es) of the hiring location enables better API results, especially job searches by commute time. At most 50 locations are allowed for best search performance. If a job has more locations, it is suggested to split it into multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', and so on.) as multiple jobs with the same company, language_code and requisition_id are not allowed. If the original requisition_id must be preserved, a custom field should be used for storage. It is also suggested to group the locations that close to each other in the same job for better search experience. Jobs with multiple addresses must have their addresses with the same LocationType to allow location filtering to work properly. (For example, a Job with addresses "1600 Amphitheatre Parkway, Mountain View, CA, USA" and "London, UK" may not have location filters applied correctly at search time since the first is a LocationType.STREET_ADDRESS and the second is a LocationType.LOCALITY.) If a job needs to have multiple addresses, it is suggested to split it into multiple jobs with same LocationTypes. The maximum number of allowed characters is 500.
     */
    @JvmName("lbddweqifpbydrds")
    public suspend fun addresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.addresses = mapped
    }

    /**
     * @param values Strongly recommended for the best service experience. Location(s) where the employer is looking to hire for this job posting. Specifying the full street address(es) of the hiring location enables better API results, especially job searches by commute time. At most 50 locations are allowed for best search performance. If a job has more locations, it is suggested to split it into multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', and so on.) as multiple jobs with the same company, language_code and requisition_id are not allowed. If the original requisition_id must be preserved, a custom field should be used for storage. It is also suggested to group the locations that close to each other in the same job for better search experience. Jobs with multiple addresses must have their addresses with the same LocationType to allow location filtering to work properly. (For example, a Job with addresses "1600 Amphitheatre Parkway, Mountain View, CA, USA" and "London, UK" may not have location filters applied correctly at search time since the first is a LocationType.STREET_ADDRESS and the second is a LocationType.LOCALITY.) If a job needs to have multiple addresses, it is suggested to split it into multiple jobs with same LocationTypes. The maximum number of allowed characters is 500.
     */
    @JvmName("biwkydaufhivqbqe")
    public suspend fun addresses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addresses = mapped
    }

    /**
     * @param value Job application information.
     */
    @JvmName("ntjhevpmedbnenut")
    public suspend fun applicationInfo(`value`: ApplicationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationInfo = mapped
    }

    /**
     * @param argument Job application information.
     */
    @JvmName("quvrdeogltgjtdgd")
    public suspend fun applicationInfo(argument: suspend ApplicationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.applicationInfo = mapped
    }

    /**
     * @param value The resource name of the company listing the job. The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". For example, "projects/foo/tenants/bar/companies/baz".
     */
    @JvmName("snubqhipfdklixlk")
    public suspend fun company(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.company = mapped
    }

    /**
     * @param value Job compensation information (a.k.a. "pay rate") i.e., the compensation that will paid to the employee.
     */
    @JvmName("bpogetemxeceoeja")
    public suspend fun compensationInfo(`value`: CompensationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.compensationInfo = mapped
    }

    /**
     * @param argument Job compensation information (a.k.a. "pay rate") i.e., the compensation that will paid to the employee.
     */
    @JvmName("bpnepdypeiiycsrn")
    public suspend fun compensationInfo(argument: suspend CompensationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = CompensationInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.compensationInfo = mapped
    }

    /**
     * @param value A map of fields to hold both filterable and non-filterable custom job attributes that are not covered by the provided structured fields. The keys of the map are strings up to 64 bytes and must match the pattern: `a-zA-Z*`. For example, key0LikeThis or KEY_1_LIKE_THIS. At most 100 filterable and at most 100 unfilterable keys are supported. For filterable `string_values`, across all keys at most 200 values are allowed, with each string no more than 255 characters. For unfilterable `string_values`, the maximum total size of `string_values` across all keys is 50KB.
     */
    @JvmName("ulktpwixpjvrdxnk")
    public suspend fun customAttributes(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customAttributes = mapped
    }

    /**
     * @param values A map of fields to hold both filterable and non-filterable custom job attributes that are not covered by the provided structured fields. The keys of the map are strings up to 64 bytes and must match the pattern: `a-zA-Z*`. For example, key0LikeThis or KEY_1_LIKE_THIS. At most 100 filterable and at most 100 unfilterable keys are supported. For filterable `string_values`, across all keys at most 200 values are allowed, with each string no more than 255 characters. For unfilterable `string_values`, the maximum total size of `string_values` across all keys is 50KB.
     */
    @JvmName("uhiwsqrjwghyjmev")
    public fun customAttributes(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customAttributes = mapped
    }

    /**
     * @param value The desired education degrees for the job, such as Bachelors, Masters.
     */
    @JvmName("kjefkqcypwyqckse")
    public suspend fun degreeTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.degreeTypes = mapped
    }

    /**
     * @param values The desired education degrees for the job, such as Bachelors, Masters.
     */
    @JvmName("gafhqiablpfdeqba")
    public suspend fun degreeTypes(vararg values: JobDegreeTypesItem) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.degreeTypes = mapped
    }

    /**
     * @param value The department or functional area within the company with the open position. The maximum number of allowed characters is 255.
     */
    @JvmName("xqdoaeqfosnxltxf")
    public suspend fun department(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.department = mapped
    }

    /**
     * @param value The description of the job, which typically includes a multi-paragraph description of the company and related information. Separate fields are provided on the job object for responsibilities, qualifications, and other job characteristics. Use of these separate job fields is recommended. This field accepts and sanitizes HTML input, and also accepts bold, italic, ordered list, and unordered list markup tags. The maximum number of allowed characters is 100,000.
     */
    @JvmName("pqvxkvyvqursotro")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The employment type(s) of a job, for example, full time or part time.
     */
    @JvmName("rauhwpnymaufcjkf")
    public suspend fun employmentTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.employmentTypes = mapped
    }

    /**
     * @param values The employment type(s) of a job, for example, full time or part time.
     */
    @JvmName("cdxqpmauhkulymem")
    public suspend fun employmentTypes(vararg values: JobEmploymentTypesItem) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.employmentTypes = mapped
    }

    /**
     * @param value A description of bonus, commission, and other compensation incentives associated with the job not including salary or pay. The maximum number of allowed characters is 10,000.
     */
    @JvmName("gyusntnketdfwwpa")
    public suspend fun incentives(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.incentives = mapped
    }

    /**
     * @param value The benefits included with the job.
     */
    @JvmName("dhwusvhikwcbwwqg")
    public suspend fun jobBenefits(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobBenefits = mapped
    }

    /**
     * @param values The benefits included with the job.
     */
    @JvmName("jkysatvposqsadkd")
    public suspend fun jobBenefits(vararg values: JobJobBenefitsItem) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jobBenefits = mapped
    }

    /**
     * @param value The end timestamp of the job. Typically this field is used for contracting engagements. Invalid timestamps are ignored.
     */
    @JvmName("dqiruphrkayegdca")
    public suspend fun jobEndTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobEndTime = mapped
    }

    /**
     * @param value The experience level associated with the job, such as "Entry Level".
     */
    @JvmName("sgxckurtxxwaecvn")
    public suspend fun jobLevel(`value`: JobJobLevel?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobLevel = mapped
    }

    /**
     * @param value The start timestamp of the job in UTC time zone. Typically this field is used for contracting engagements. Invalid timestamps are ignored.
     */
    @JvmName("crjaqoxftqujcwcb")
    public suspend fun jobStartTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobStartTime = mapped
    }

    /**
     * @param value The language of the posting. This field is distinct from any requirements for fluency that are associated with the job. Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: class="external" target="_blank" }. If this field is unspecified and Job.description is present, detected language code based on Job.description is assigned, otherwise defaults to 'en_US'.
     */
    @JvmName("areywjxmiklngmkj")
    public suspend fun languageCode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.languageCode = mapped
    }

    /**
     * @param value Required during job update. The resource name for the job. This is generated by the service when a job is created. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". Use of this field in job queries and API calls is preferred over the use of requisition_id since this value is unique.
     */
    @JvmName("lgxlbxhfxafxhlro")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Strongly recommended for the best service experience. The expiration timestamp of the job. After this timestamp, the job is marked as expired, and it no longer appears in search results. The expired job can't be listed by the ListJobs API, but it can be retrieved with the GetJob API or updated with the UpdateJob API or deleted with the DeleteJob API. An expired job can be updated and opened again by using a future expiration timestamp. Updating an expired job fails if there is another existing open job with same company, language_code and requisition_id. The expired jobs are retained in our system for 90 days. However, the overall expired job count cannot exceed 3 times the maximum number of open jobs over previous 7 days. If this threshold is exceeded, expired jobs are cleaned out in order of earliest expire time. Expired jobs are no longer accessible after they are cleaned out. Invalid timestamps are ignored, and treated as expire time not provided. If the timestamp is before the instant request is made, the job is treated as expired immediately on creation. This kind of job can not be updated. And when creating a job with past timestamp, the posting_publish_time must be set before posting_expire_time. The purpose of this feature is to allow other objects, such as Application, to refer a job that didn't exist in the system prior to becoming expired. If you want to modify a job that was expired on creation, delete it and create a new one. If this value isn't provided at the time of job creation or is invalid, the job posting expires after 30 days from the job's creation time. For example, if the job was created on 2017/01/01 13:00AM UTC with an unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC. If this value isn't provided on job update, it depends on the field masks set by UpdateJobRequest.update_mask. If the field masks include job_end_time, or the masks are empty meaning that every field is updated, the job posting expires after 30 days from the job's last update time. Otherwise the expiration date isn't updated.
     */
    @JvmName("aaqndjkhoivdhaew")
    public suspend fun postingExpireTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.postingExpireTime = mapped
    }

    /**
     * @param value The timestamp this job posting was most recently published. The default value is the time the request arrives at the server. Invalid timestamps are ignored.
     */
    @JvmName("igabicmtptqlkqob")
    public suspend fun postingPublishTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.postingPublishTime = mapped
    }

    /**
     * @param value The job PostingRegion (for example, state, country) throughout which the job is available. If this field is set, a LocationFilter in a search query within the job region finds this job posting if an exact location match isn't specified. If this field is set to PostingRegion.NATION or PostingRegion.ADMINISTRATIVE_AREA, setting job Job.addresses to the same location level as this field is strongly recommended.
     */
    @JvmName("mpylypvieforgyij")
    public suspend fun postingRegion(`value`: JobPostingRegion?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.postingRegion = mapped
    }

    /**
     * @param value Options for job processing.
     */
    @JvmName("fexvnfclatttmxci")
    public suspend fun processingOptions(`value`: ProcessingOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.processingOptions = mapped
    }

    /**
     * @param argument Options for job processing.
     */
    @JvmName("prgxlpbaxdwevheg")
    public suspend fun processingOptions(argument: suspend ProcessingOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = ProcessingOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.processingOptions = mapped
    }

    /**
     * @param value
     */
    @JvmName("njkbbdsmsxcaimev")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value A promotion value of the job, as determined by the client. The value determines the sort order of the jobs returned when searching for jobs using the featured jobs search call, with higher promotional values being returned first and ties being resolved by relevance sort. Only the jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH. Default value is 0, and negative values are treated as 0.
     */
    @JvmName("quufgvotfbiotakf")
    public suspend fun promotionValue(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.promotionValue = mapped
    }

    /**
     * @param value A description of the qualifications required to perform the job. The use of this field is recommended as an alternative to using the more general description field. This field accepts and sanitizes HTML input, and also accepts bold, italic, ordered list, and unordered list markup tags. The maximum number of allowed characters is 10,000.
     */
    @JvmName("lenrpqfhgucnwbuw")
    public suspend fun qualifications(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.qualifications = mapped
    }

    /**
     * @param value The requisition ID, also referred to as the posting ID, is assigned by the client to identify a job. This field is intended to be used by clients for client identification and tracking of postings. A job isn't allowed to be created if there is another job with the same company, language_code and requisition_id. The maximum number of allowed characters is 255.
     */
    @JvmName("obkpdlnelclsrfha")
    public suspend fun requisitionId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requisitionId = mapped
    }

    /**
     * @param value A description of job responsibilities. The use of this field is recommended as an alternative to using the more general description field. This field accepts and sanitizes HTML input, and also accepts bold, italic, ordered list, and unordered list markup tags. The maximum number of allowed characters is 10,000.
     */
    @JvmName("ftjdkmbrmepfkowa")
    public suspend fun responsibilities(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.responsibilities = mapped
    }

    /**
     * @param value
     */
    @JvmName("djyeqnayygcgxoxp")
    public suspend fun tenantId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tenantId = mapped
    }

    /**
     * @param value The title of the job, such as "Software Engineer" The maximum number of allowed characters is 500.
     */
    @JvmName("ktwvmwylwwaqbdov")
    public suspend fun title(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.title = mapped
    }

    /**
     * @param value Deprecated. The job is only visible to the owner. The visibility of the job. Defaults to Visibility.ACCOUNT_ONLY if not specified.
     */
    @Deprecated(
        message = """
  Deprecated. The job is only visible to the owner. The visibility of the job. Defaults to
      Visibility.ACCOUNT_ONLY if not specified.
  """,
    )
    @JvmName("yvauivgaulwlukwg")
    public suspend fun visibility(`value`: JobVisibility?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.visibility = mapped
    }

    internal fun build(): JobArgs = JobArgs(
        addresses = addresses,
        applicationInfo = applicationInfo,
        company = company,
        compensationInfo = compensationInfo,
        customAttributes = customAttributes,
        degreeTypes = degreeTypes,
        department = department,
        description = description,
        employmentTypes = employmentTypes,
        incentives = incentives,
        jobBenefits = jobBenefits,
        jobEndTime = jobEndTime,
        jobLevel = jobLevel,
        jobStartTime = jobStartTime,
        languageCode = languageCode,
        name = name,
        postingExpireTime = postingExpireTime,
        postingPublishTime = postingPublishTime,
        postingRegion = postingRegion,
        processingOptions = processingOptions,
        project = project,
        promotionValue = promotionValue,
        qualifications = qualifications,
        requisitionId = requisitionId,
        responsibilities = responsibilities,
        tenantId = tenantId,
        title = title,
        visibility = visibility,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy