JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.cloudfront.model

Class AllowedMethods

  • All Implemented Interfaces:
    Serializable, Cloneable


    @Generated(value="com.amazonaws:aws-java-sdk-code-generator")
    public class AllowedMethods
    extends Object
    implements Serializable, Cloneable 

    A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:

    • CloudFront forwards only GET and HEAD requests.

    • CloudFront forwards only GET, HEAD, and OPTIONS requests.

    • CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests.

    If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.

    See Also:
    AWS API Documentation, Serialized Form
    • Constructor Detail

      • AllowedMethods

        public AllowedMethods()
    • Method Detail

      • setQuantity

        public void setQuantity(Integer quantity)

        The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD, and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).

        Parameters:
        quantity - The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD, and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).
      • getQuantity

        public Integer getQuantity()

        The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD, and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).

        Returns:
        The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD, and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).
      • withQuantity

        public AllowedMethods withQuantity(Integer quantity)

        The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD, and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).

        Parameters:
        quantity - The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD, and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getItems

        public List<String> getItems()

        A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

        Returns:
        A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
        See Also:
        Method
      • setItems

        public void setItems(Collection<String> items)

        A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

        Parameters:
        items - A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
        See Also:
        Method
      • withItems

        public AllowedMethods withItems(String... items)

        A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

        NOTE: This method appends the values to the existing list (if any). Use setItems(java.util.Collection) or withItems(java.util.Collection) if you want to override the existing values.

        Parameters:
        items - A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Method
      • withItems

        public AllowedMethods withItems(Collection<String> items)

        A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

        Parameters:
        items - A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Method
      • withItems

        public AllowedMethods withItems(Method... items)

        A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

        Parameters:
        items - A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Method
      • setCachedMethods

        public void setCachedMethods(CachedMethods cachedMethods)
        Parameters:
        cachedMethods -
      • getCachedMethods

        public CachedMethods getCachedMethods()
        Returns:
      • withCachedMethods

        public AllowedMethods withCachedMethods(CachedMethods cachedMethods)
        Parameters:
        cachedMethods -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /