EndpointPropertiesUpdateParameters Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. fluent. models. EndpointPropertiesUpdateParameters
- com.
Implements
public class EndpointPropertiesUpdateParameters
implements JsonSerializable<EndpointPropertiesUpdateParameters>
The JSON object containing endpoint update parameters.
Constructor Summary
| Constructor | Description |
|---|---|
| EndpointPropertiesUpdateParameters() |
Creates an instance of Endpoint |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
contentTypesToCompress()
Get the content |
|
Resource |
defaultOriginGroup()
Get the default |
|
Endpoint |
deliveryPolicy()
Get the delivery |
|
static
Endpoint |
fromJson(JsonReader jsonReader)
Reads an instance of Endpoint |
|
List<Geo |
geoFilters()
Get the geo |
| Boolean |
isCompressionEnabled()
Get the is |
| Boolean |
isHttpAllowed()
Get the is |
| Boolean |
isHttpsAllowed()
Get the is |
|
Optimization |
optimizationType()
Get the optimization |
| String |
originHostHeader()
Get the origin |
| String |
originPath()
Get the origin |
| String |
probePath()
Get the probe |
|
Query |
queryStringCachingBehavior()
Get the query |
|
Json |
toJson(JsonWriter jsonWriter) |
|
List<Url |
urlSigningKeys()
Get the url |
| void |
validate()
Validates the instance. |
|
Endpoint |
webApplicationFirewallPolicyLink()
Get the web |
|
Endpoint |
withContentTypesToCompress(List<String> contentTypesToCompress)
Set the content |
|
Endpoint |
withDefaultOriginGroup(ResourceReference defaultOriginGroup)
Set the default |
|
Endpoint |
withDeliveryPolicy(EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy)
Set the delivery |
|
Endpoint |
withGeoFilters(List<GeoFilter> geoFilters)
Set the geo |
|
Endpoint |
withIsCompressionEnabled(Boolean isCompressionEnabled)
Set the is |
|
Endpoint |
withIsHttpAllowed(Boolean isHttpAllowed)
Set the is |
|
Endpoint |
withIsHttpsAllowed(Boolean isHttpsAllowed)
Set the is |
|
Endpoint |
withOptimizationType(OptimizationType optimizationType)
Set the optimization |
|
Endpoint |
withOriginHostHeader(String originHostHeader)
Set the origin |
|
Endpoint |
withOriginPath(String originPath)
Set the origin |
|
Endpoint |
withProbePath(String probePath)
Set the probe |
|
Endpoint |
withQueryStringCachingBehavior(QueryStringCachingBehavior queryStringCachingBehavior)
Set the query |
|
Endpoint |
withUrlSigningKeys(List<UrlSigningKey> urlSigningKeys)
Set the url |
|
Endpoint |
withWebApplicationFirewallPolicyLink(EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink)
Set the web |
Methods inherited from java.lang.Object
Constructor Details
EndpointPropertiesUpdateParameters
public EndpointPropertiesUpdateParameters()
Creates an instance of EndpointPropertiesUpdateParameters class.
Method Details
contentTypesToCompress
public List<String> contentTypesToCompress()
Get the contentTypesToCompress property: List of content types on which compression applies. The value should be a valid MIME type.
Returns:
defaultOriginGroup
public ResourceReference defaultOriginGroup()
Get the defaultOriginGroup property: A reference to the origin group.
Returns:
deliveryPolicy
public EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy()
Get the deliveryPolicy property: A policy that specifies the delivery rules to be used for an endpoint.
Returns:
fromJson
public static EndpointPropertiesUpdateParameters fromJson(JsonReader jsonReader)
Reads an instance of EndpointPropertiesUpdateParameters from the JsonReader.
Parameters:
Returns:
Throws:
geoFilters
public List<GeoFilter> geoFilters()
Get the geoFilters property: List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/.
Returns:
isCompressionEnabled
public Boolean isCompressionEnabled()
Get the isCompressionEnabled property: Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB.
Returns:
isHttpAllowed
public Boolean isHttpAllowed()
Get the isHttpAllowed property: Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
Returns:
isHttpsAllowed
public Boolean isHttpsAllowed()
Get the isHttpsAllowed property: Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
Returns:
optimizationType
public OptimizationType optimizationType()
Get the optimizationType property: Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization.
Returns:
originHostHeader
public String originHostHeader()
Get the originHostHeader property: The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default.
Returns:
originPath
public String originPath()
Get the originPath property: A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
Returns:
probePath
public String probePath()
Get the probePath property: Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin.
Returns:
queryStringCachingBehavior
public QueryStringCachingBehavior queryStringCachingBehavior()
Get the queryStringCachingBehavior property: Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL.
Returns:
toJson
urlSigningKeys
public List<UrlSigningKey> urlSigningKeys()
Get the urlSigningKeys property: List of keys used to validate the signed URL hashes.
Returns:
validate
public void validate()
Validates the instance.
webApplicationFirewallPolicyLink
public EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink()
Get the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for the endpoint (if applicable).
Returns:
withContentTypesToCompress
public EndpointPropertiesUpdateParameters withContentTypesToCompress(List<String> contentTypesToCompress)
Set the contentTypesToCompress property: List of content types on which compression applies. The value should be a valid MIME type.
Parameters:
Returns:
withDefaultOriginGroup
public EndpointPropertiesUpdateParameters withDefaultOriginGroup(ResourceReference defaultOriginGroup)
Set the defaultOriginGroup property: A reference to the origin group.
Parameters:
Returns:
withDeliveryPolicy
public EndpointPropertiesUpdateParameters withDeliveryPolicy(EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy)
Set the deliveryPolicy property: A policy that specifies the delivery rules to be used for an endpoint.
Parameters:
Returns:
withGeoFilters
public EndpointPropertiesUpdateParameters withGeoFilters(List<GeoFilter> geoFilters)
Set the geoFilters property: List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/.
Parameters:
Returns:
withIsCompressionEnabled
public EndpointPropertiesUpdateParameters withIsCompressionEnabled(Boolean isCompressionEnabled)
Set the isCompressionEnabled property: Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB.
Parameters:
Returns:
withIsHttpAllowed
public EndpointPropertiesUpdateParameters withIsHttpAllowed(Boolean isHttpAllowed)
Set the isHttpAllowed property: Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
Parameters:
Returns:
withIsHttpsAllowed
public EndpointPropertiesUpdateParameters withIsHttpsAllowed(Boolean isHttpsAllowed)
Set the isHttpsAllowed property: Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
Parameters:
Returns:
withOptimizationType
public EndpointPropertiesUpdateParameters withOptimizationType(OptimizationType optimizationType)
Set the optimizationType property: Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization.
Parameters:
Returns:
withOriginHostHeader
public EndpointPropertiesUpdateParameters withOriginHostHeader(String originHostHeader)
Set the originHostHeader property: The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default.
Parameters:
Returns:
withOriginPath
public EndpointPropertiesUpdateParameters withOriginPath(String originPath)
Set the originPath property: A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
Parameters:
Returns:
withProbePath
public EndpointPropertiesUpdateParameters withProbePath(String probePath)
Set the probePath property: Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin.
Parameters:
Returns:
withQueryStringCachingBehavior
public EndpointPropertiesUpdateParameters withQueryStringCachingBehavior(QueryStringCachingBehavior queryStringCachingBehavior)
Set the queryStringCachingBehavior property: Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL.
Parameters:
Returns:
withUrlSigningKeys
public EndpointPropertiesUpdateParameters withUrlSigningKeys(List<UrlSigningKey> urlSigningKeys)
Set the urlSigningKeys property: List of keys used to validate the signed URL hashes.
Parameters:
Returns:
withWebApplicationFirewallPolicyLink
public EndpointPropertiesUpdateParameters withWebApplicationFirewallPolicyLink(EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink)
Set the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for the endpoint (if applicable).
Parameters:
Returns: