Class CfnPlaybackRestrictionPolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ivs.CfnPlaybackRestrictionPolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlaybackRestrictionPolicyMixinProps>
- Enclosing interface:
CfnPlaybackRestrictionPolicyMixinProps
@Stability(Stable)
public static final class CfnPlaybackRestrictionPolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlaybackRestrictionPolicyMixinProps>
A builder for
CfnPlaybackRestrictionPolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedCountries(List<String> allowedCountries) Sets the value ofCfnPlaybackRestrictionPolicyMixinProps.getAllowedCountries()allowedOrigins(List<String> allowedOrigins) Sets the value ofCfnPlaybackRestrictionPolicyMixinProps.getAllowedOrigins()build()Builds the configured instance.enableStrictOriginEnforcement(Boolean enableStrictOriginEnforcement) enableStrictOriginEnforcement(IResolvable enableStrictOriginEnforcement) Sets the value ofCfnPlaybackRestrictionPolicyMixinProps.getName()Sets the value ofCfnPlaybackRestrictionPolicyMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedCountries
@Stability(Stable) public CfnPlaybackRestrictionPolicyMixinProps.Builder allowedCountries(List<String> allowedCountries) Sets the value ofCfnPlaybackRestrictionPolicyMixinProps.getAllowedCountries()- Parameters:
allowedCountries- A list of country codes that control geoblocking restrictions. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).- Returns:
this
-
allowedOrigins
@Stability(Stable) public CfnPlaybackRestrictionPolicyMixinProps.Builder allowedOrigins(List<String> allowedOrigins) Sets the value ofCfnPlaybackRestrictionPolicyMixinProps.getAllowedOrigins()- Parameters:
allowedOrigins- A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin"- Returns:
this
-
enableStrictOriginEnforcement
@Stability(Stable) public CfnPlaybackRestrictionPolicyMixinProps.Builder enableStrictOriginEnforcement(Boolean enableStrictOriginEnforcement) - Parameters:
enableStrictOriginEnforcement- Whether channel playback is constrained by the origin site.- Returns:
this
-
enableStrictOriginEnforcement
@Stability(Stable) public CfnPlaybackRestrictionPolicyMixinProps.Builder enableStrictOriginEnforcement(IResolvable enableStrictOriginEnforcement) - Parameters:
enableStrictOriginEnforcement- Whether channel playback is constrained by the origin site.- Returns:
this
-
name
Sets the value ofCfnPlaybackRestrictionPolicyMixinProps.getName()- Parameters:
name- Playback-restriction-policy name.- Returns:
this
-
tags
@Stability(Stable) public CfnPlaybackRestrictionPolicyMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnPlaybackRestrictionPolicyMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPlaybackRestrictionPolicyMixinProps>- Returns:
- a new instance of
CfnPlaybackRestrictionPolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-