@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PlaybackRestrictionPolicy extends Object implements Serializable, Cloneable, StructuredPojo
An object representing a policy to constrain playback by country and/or origin sites.
Constructor and Description |
---|
PlaybackRestrictionPolicy() |
Modifier and Type | Method and Description |
---|---|
PlaybackRestrictionPolicy |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
PlaybackRestrictionPolicy |
clearTagsEntries()
Removes all the entries added into Tags.
|
PlaybackRestrictionPolicy |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAllowedCountries()
A list of country codes that control geoblocking restriction.
|
List<String> |
getAllowedOrigins()
A list of origin sites that control CORS restriction.
|
String |
getArn()
Playback-restriction-policy ARN
|
Boolean |
getEnableStrictOriginEnforcement()
Whether channel playback is constrained by origin site.
|
String |
getName()
Playback-restriction-policy name.
|
Map<String,String> |
getTags()
Tags attached to the resource.
|
int |
hashCode() |
Boolean |
isEnableStrictOriginEnforcement()
Whether channel playback is constrained by origin site.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowedCountries(Collection<String> allowedCountries)
A list of country codes that control geoblocking restriction.
|
void |
setAllowedOrigins(Collection<String> allowedOrigins)
A list of origin sites that control CORS restriction.
|
void |
setArn(String arn)
Playback-restriction-policy ARN
|
void |
setEnableStrictOriginEnforcement(Boolean enableStrictOriginEnforcement)
Whether channel playback is constrained by origin site.
|
void |
setName(String name)
Playback-restriction-policy name.
|
void |
setTags(Map<String,String> tags)
Tags attached to the resource.
|
String |
toString()
Returns a string representation of this object.
|
PlaybackRestrictionPolicy |
withAllowedCountries(Collection<String> allowedCountries)
A list of country codes that control geoblocking restriction.
|
PlaybackRestrictionPolicy |
withAllowedCountries(String... allowedCountries)
A list of country codes that control geoblocking restriction.
|
PlaybackRestrictionPolicy |
withAllowedOrigins(Collection<String> allowedOrigins)
A list of origin sites that control CORS restriction.
|
PlaybackRestrictionPolicy |
withAllowedOrigins(String... allowedOrigins)
A list of origin sites that control CORS restriction.
|
PlaybackRestrictionPolicy |
withArn(String arn)
Playback-restriction-policy ARN
|
PlaybackRestrictionPolicy |
withEnableStrictOriginEnforcement(Boolean enableStrictOriginEnforcement)
Whether channel playback is constrained by origin site.
|
PlaybackRestrictionPolicy |
withName(String name)
Playback-restriction-policy name.
|
PlaybackRestrictionPolicy |
withTags(Map<String,String> tags)
Tags attached to the resource.
|
public void setArn(String arn)
Playback-restriction-policy ARN
arn
- Playback-restriction-policy ARNpublic String getArn()
Playback-restriction-policy ARN
public PlaybackRestrictionPolicy withArn(String arn)
Playback-restriction-policy ARN
arn
- Playback-restriction-policy ARNpublic List<String> getAllowedCountries()
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
public void setAllowedCountries(Collection<String> allowedCountries)
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
allowedCountries
- A list of country codes that control geoblocking restriction. Allowed values are the officially assigned
ISO 3166-1 alpha-2 codes. Default: All
countries (an empty array).public PlaybackRestrictionPolicy withAllowedCountries(String... allowedCountries)
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
NOTE: This method appends the values to the existing list (if any). Use
setAllowedCountries(java.util.Collection)
or withAllowedCountries(java.util.Collection)
if you
want to override the existing values.
allowedCountries
- A list of country codes that control geoblocking restriction. Allowed values are the officially assigned
ISO 3166-1 alpha-2 codes. Default: All
countries (an empty array).public PlaybackRestrictionPolicy withAllowedCountries(Collection<String> allowedCountries)
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
allowedCountries
- A list of country codes that control geoblocking restriction. Allowed values are the officially assigned
ISO 3166-1 alpha-2 codes. Default: All
countries (an empty array).public List<String> getAllowedOrigins()
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. Default: All origins (an empty array).
public void setAllowedOrigins(Collection<String> 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. Default: All origins (an empty array).
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. Default: All origins (an empty array).public PlaybackRestrictionPolicy withAllowedOrigins(String... 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. Default: All origins (an empty array).
NOTE: This method appends the values to the existing list (if any). Use
setAllowedOrigins(java.util.Collection)
or withAllowedOrigins(java.util.Collection)
if you want
to override the existing values.
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. Default: All origins (an empty array).public PlaybackRestrictionPolicy withAllowedOrigins(Collection<String> 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. Default: All origins (an empty array).
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. Default: All origins (an empty array).public void setEnableStrictOriginEnforcement(Boolean enableStrictOriginEnforcement)
Whether channel playback is constrained by origin site. Default: false
.
enableStrictOriginEnforcement
- Whether channel playback is constrained by origin site. Default: false
.public Boolean getEnableStrictOriginEnforcement()
Whether channel playback is constrained by origin site. Default: false
.
false
.public PlaybackRestrictionPolicy withEnableStrictOriginEnforcement(Boolean enableStrictOriginEnforcement)
Whether channel playback is constrained by origin site. Default: false
.
enableStrictOriginEnforcement
- Whether channel playback is constrained by origin site. Default: false
.public Boolean isEnableStrictOriginEnforcement()
Whether channel playback is constrained by origin site. Default: false
.
false
.public void setName(String name)
Playback-restriction-policy name. The value does not need to be unique.
name
- Playback-restriction-policy name. The value does not need to be unique.public String getName()
Playback-restriction-policy name. The value does not need to be unique.
public PlaybackRestrictionPolicy withName(String name)
Playback-restriction-policy name. The value does not need to be unique.
name
- Playback-restriction-policy name. The value does not need to be unique.public Map<String,String> getTags()
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value)
. See
Tagging Amazon Web Services
Resources for more information, including restrictions that apply to tags and
"Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented
there.
string:string (key:value)
. See Tagging Amazon Web Services
Resources for more information, including restrictions that apply to tags and
"Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is
documented there.public void setTags(Map<String,String> tags)
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value)
. See
Tagging Amazon Web Services
Resources for more information, including restrictions that apply to tags and
"Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented
there.
tags
- Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value)
. See Tagging Amazon Web Services
Resources for more information, including restrictions that apply to tags and
"Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is
documented there.public PlaybackRestrictionPolicy withTags(Map<String,String> tags)
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value)
. See
Tagging Amazon Web Services
Resources for more information, including restrictions that apply to tags and
"Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented
there.
tags
- Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value)
. See Tagging Amazon Web Services
Resources for more information, including restrictions that apply to tags and
"Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is
documented there.public PlaybackRestrictionPolicy addTagsEntry(String key, String value)
public PlaybackRestrictionPolicy clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public PlaybackRestrictionPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.