@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePlaybackRestrictionPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreatePlaybackRestrictionPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreatePlaybackRestrictionPolicyRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreatePlaybackRestrictionPolicyRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreatePlaybackRestrictionPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
Boolean |
getEnableStrictOriginEnforcement()
Whether channel playback is constrained by origin site.
|
String |
getName()
Playback-restriction-policy name.
|
Map<String,String> |
getTags()
Array of 1-50 maps, each of the form
string:string (key:value). |
int |
hashCode() |
Boolean |
isEnableStrictOriginEnforcement()
Whether channel playback is constrained by origin site.
|
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 |
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)
Array of 1-50 maps, each of the form
string:string (key:value). |
String |
toString()
Returns a string representation of this object.
|
CreatePlaybackRestrictionPolicyRequest |
withAllowedCountries(Collection<String> allowedCountries)
A list of country codes that control geoblocking restriction.
|
CreatePlaybackRestrictionPolicyRequest |
withAllowedCountries(String... allowedCountries)
A list of country codes that control geoblocking restriction.
|
CreatePlaybackRestrictionPolicyRequest |
withAllowedOrigins(Collection<String> allowedOrigins)
A list of origin sites that control CORS restriction.
|
CreatePlaybackRestrictionPolicyRequest |
withAllowedOrigins(String... allowedOrigins)
A list of origin sites that control CORS restriction.
|
CreatePlaybackRestrictionPolicyRequest |
withEnableStrictOriginEnforcement(Boolean enableStrictOriginEnforcement)
Whether channel playback is constrained by origin site.
|
CreatePlaybackRestrictionPolicyRequest |
withName(String name)
Playback-restriction-policy name.
|
CreatePlaybackRestrictionPolicyRequest |
withTags(Map<String,String> tags)
Array of 1-50 maps, each of the form
string:string (key:value). |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic CreatePlaybackRestrictionPolicyRequest()
public 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 CreatePlaybackRestrictionPolicyRequest 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 CreatePlaybackRestrictionPolicyRequest 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 CreatePlaybackRestrictionPolicyRequest 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 CreatePlaybackRestrictionPolicyRequest 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 CreatePlaybackRestrictionPolicyRequest 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 CreatePlaybackRestrictionPolicyRequest 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()
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)
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 - 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 CreatePlaybackRestrictionPolicyRequest withTags(Map<String,String> tags)
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 - 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 CreatePlaybackRestrictionPolicyRequest addTagsEntry(String key, String value)
public CreatePlaybackRestrictionPolicyRequest clearTagsEntries()
public String toString()
toString in class ObjectObject.toString()public CreatePlaybackRestrictionPolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()