Class MonitoringSloConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • goal

        @Stability(Stable)
        public MonitoringSloConfig.Builder goal​(Number goal)
        Parameters:
        goal - The fraction of service that must be good in order for this objective to be met. This parameter is required. 0 < goal <= 0.999 Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#goal MonitoringSlo#goal}
        Returns:
        this
      • service

        @Stability(Stable)
        public MonitoringSloConfig.Builder service​(String service)
        Parameters:
        service - ID of the service to which this SLO belongs. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#service MonitoringSlo#service}
        Returns:
        this
      • calendarPeriod

        @Stability(Stable)
        public MonitoringSloConfig.Builder calendarPeriod​(String calendarPeriod)
        Parameters:
        calendarPeriod - A calendar period, semantically "since the start of the current ". Possible values: ["DAY", "WEEK", "FORTNIGHT", "MONTH"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#calendar_period MonitoringSlo#calendar_period}
        Returns:
        this
      • displayName

        @Stability(Stable)
        public MonitoringSloConfig.Builder displayName​(String displayName)
        Parameters:
        displayName - Name used for UI elements listing this SLO. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#display_name MonitoringSlo#display_name}
        Returns:
        this
      • id

        @Stability(Stable)
        public MonitoringSloConfig.Builder id​(String id)
        Sets the value of MonitoringSloConfig.getId()
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#id MonitoringSlo#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
        Returns:
        this
      • project

        @Stability(Stable)
        public MonitoringSloConfig.Builder project​(String project)
        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#project MonitoringSlo#project}.
        Returns:
        this
      • rollingPeriodDays

        @Stability(Stable)
        public MonitoringSloConfig.Builder rollingPeriodDays​(Number rollingPeriodDays)
        Parameters:
        rollingPeriodDays - A rolling time period, semantically "in the past X days". Must be between 1 to 30 days, inclusive. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#rolling_period_days MonitoringSlo#rolling_period_days}
        Returns:
        this
      • sloId

        @Stability(Stable)
        public MonitoringSloConfig.Builder sloId​(String sloId)
        Parameters:
        sloId - The id to use for this ServiceLevelObjective. If omitted, an id will be generated instead. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#slo_id MonitoringSlo#slo_id}
        Returns:
        this
      • userLabels

        @Stability(Stable)
        public MonitoringSloConfig.Builder userLabels​(Map<String,​String> userLabels)
        Parameters:
        userLabels - This field is intended to be used for organizing and identifying the AlertPolicy objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#user_labels MonitoringSlo#user_labels}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public MonitoringSloConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public MonitoringSloConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public MonitoringSloConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public MonitoringSloConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public MonitoringSloConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public MonitoringSloConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public MonitoringSloConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public MonitoringSloConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public MonitoringSloConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this