/* * Copyright 2018-2023 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.route53resolver.model; import javax.annotation.Generated; /** *

* One or more parameters in this request are not valid. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InvalidParameterException extends com.amazonaws.services.route53resolver.model.AmazonRoute53ResolverException { private static final long serialVersionUID = 1L; /** *

* For an InvalidParameterException error, the name of the parameter that's invalid. *

*/ private String fieldName; /** * Constructs a new InvalidParameterException with the specified error message. * * @param message * Describes the error encountered. */ public InvalidParameterException(String message) { super(message); } /** *

* For an InvalidParameterException error, the name of the parameter that's invalid. *

* * @param fieldName * For an InvalidParameterException error, the name of the parameter that's invalid. */ @com.fasterxml.jackson.annotation.JsonProperty("FieldName") public void setFieldName(String fieldName) { this.fieldName = fieldName; } /** *

* For an InvalidParameterException error, the name of the parameter that's invalid. *

* * @return For an InvalidParameterException error, the name of the parameter that's invalid. */ @com.fasterxml.jackson.annotation.JsonProperty("FieldName") public String getFieldName() { return this.fieldName; } /** *

* For an InvalidParameterException error, the name of the parameter that's invalid. *

* * @param fieldName * For an InvalidParameterException error, the name of the parameter that's invalid. * @return Returns a reference to this object so that method calls can be chained together. */ public InvalidParameterException withFieldName(String fieldName) { setFieldName(fieldName); return this; } }