All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.waf.model.WAFInvalidParameterException Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not
 * use this file except in compliance with the License. A copy of the License is
 * located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.amazonaws.services.waf.model;

/**
 * 

* The operation failed because AWS WAF didn't recognize a parameter in the * request. For example: *

*
    *
  • You specified an invalid parameter name.
  • *
  • You specified an invalid value.
  • *
  • You tried to update an object (ByteMatchSet, * IPSet, Rule, or WebACL) using an * action other than INSERT or DELETE.
  • *
  • You tried to create a WebACL with a * DefaultAction Type other than ALLOW, * BLOCK, or COUNT.
  • *
  • You tried to update a WebACL with a WafAction * Type other than ALLOW, BLOCK, or * COUNT.
  • *
  • You tried to update a ByteMatchSet with a * FieldToMatch Type other than HEADER, QUERY_STRING, * or URI.
  • *
  • You tried to update a ByteMatchSet with a Field * of HEADER but no value for Data.
  • *
*/ public class WAFInvalidParameterException extends com.amazonaws.services.waf.model.AWSWAFException { private static final long serialVersionUID = 1L; private String field; private String parameter; private String reason; /** * Constructs a new WAFInvalidParameterException with the specified error * message. * * @param message * Describes the error encountered. */ public WAFInvalidParameterException(String message) { super(message); } /** * @param field * @see ParameterExceptionField */ @com.fasterxml.jackson.annotation.JsonProperty("field") public void setField(String field) { this.field = field; } /** * @return * @see ParameterExceptionField */ @com.fasterxml.jackson.annotation.JsonProperty("field") public String getField() { return this.field; } /** * @param field * @return Returns a reference to this object so that method calls can be * chained together. * @see ParameterExceptionField */ public WAFInvalidParameterException withField(String field) { setField(field); return this; } /** * @param field * @see ParameterExceptionField */ public void setField(ParameterExceptionField field) { this.field = field.toString(); } /** * @param field * @return Returns a reference to this object so that method calls can be * chained together. * @see ParameterExceptionField */ public WAFInvalidParameterException withField(ParameterExceptionField field) { setField(field); return this; } /** * @param parameter */ @com.fasterxml.jackson.annotation.JsonProperty("parameter") public void setParameter(String parameter) { this.parameter = parameter; } /** * @return */ @com.fasterxml.jackson.annotation.JsonProperty("parameter") public String getParameter() { return this.parameter; } /** * @param parameter * @return Returns a reference to this object so that method calls can be * chained together. */ public WAFInvalidParameterException withParameter(String parameter) { setParameter(parameter); return this; } /** * @param reason * @see ParameterExceptionReason */ @com.fasterxml.jackson.annotation.JsonProperty("reason") public void setReason(String reason) { this.reason = reason; } /** * @return * @see ParameterExceptionReason */ @com.fasterxml.jackson.annotation.JsonProperty("reason") public String getReason() { return this.reason; } /** * @param reason * @return Returns a reference to this object so that method calls can be * chained together. * @see ParameterExceptionReason */ public WAFInvalidParameterException withReason(String reason) { setReason(reason); return this; } /** * @param reason * @see ParameterExceptionReason */ public void setReason(ParameterExceptionReason reason) { this.reason = reason.toString(); } /** * @param reason * @return Returns a reference to this object so that method calls can be * chained together. * @see ParameterExceptionReason */ public WAFInvalidParameterException withReason( ParameterExceptionReason reason) { setReason(reason); return this; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy