Class ApikeysKeyRestrictionsBrowserKeyRestrictions.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.apikeys_key.ApikeysKeyRestrictionsBrowserKeyRestrictions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApikeysKeyRestrictionsBrowserKeyRestrictions>
- Enclosing interface:
- ApikeysKeyRestrictionsBrowserKeyRestrictions
@Stability(Stable) public static final class ApikeysKeyRestrictionsBrowserKeyRestrictions.Builder extends Object implements software.amazon.jsii.Builder<ApikeysKeyRestrictionsBrowserKeyRestrictions>
A builder forApikeysKeyRestrictionsBrowserKeyRestrictions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApikeysKeyRestrictionsBrowserKeyRestrictions.BuilderallowedReferrers(List<String> allowedReferrers)Sets the value ofApikeysKeyRestrictionsBrowserKeyRestrictions.getAllowedReferrers()ApikeysKeyRestrictionsBrowserKeyRestrictionsbuild()Builds the configured instance.
-
-
-
Method Detail
-
allowedReferrers
@Stability(Stable) public ApikeysKeyRestrictionsBrowserKeyRestrictions.Builder allowedReferrers(List<String> allowedReferrers)
Sets the value ofApikeysKeyRestrictionsBrowserKeyRestrictions.getAllowedReferrers()- Parameters:
allowedReferrers- A list of regular expressions for the referrer URLs that are allowed to make API calls with this key. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apikeys_key#allowed_referrers ApikeysKey#allowed_referrers}- Returns:
this
-
build
@Stability(Stable) public ApikeysKeyRestrictionsBrowserKeyRestrictions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApikeysKeyRestrictionsBrowserKeyRestrictions>- Returns:
- a new instance of
ApikeysKeyRestrictionsBrowserKeyRestrictions - Throws:
NullPointerException- if any required attribute was not provided
-
-