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

com.amazonaws.services.medialive.model.UnprocessableEntityException Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elemental MediaLive module holds the client classes that are used for communicating with AWS Elemental MediaLive Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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.medialive.model;

import javax.annotation.Generated;

/**
 * Placeholder documentation for UnprocessableEntityException
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UnprocessableEntityException extends com.amazonaws.services.medialive.model.AWSMediaLiveException {
    private static final long serialVersionUID = 1L;

    /** A collection of validation error responses. */
    private java.util.List validationErrors;

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

    /**
     * A collection of validation error responses.
     * 
     * @return A collection of validation error responses.
     */

    @com.fasterxml.jackson.annotation.JsonProperty("validationErrors")
    public java.util.List getValidationErrors() {
        return validationErrors;
    }

    /**
     * A collection of validation error responses.
     * 
     * @param validationErrors
     *        A collection of validation error responses.
     */

    @com.fasterxml.jackson.annotation.JsonProperty("validationErrors")
    public void setValidationErrors(java.util.Collection validationErrors) {
        if (validationErrors == null) {
            this.validationErrors = null;
            return;
        }

        this.validationErrors = new java.util.ArrayList(validationErrors);
    }

    /**
     * A collection of validation error responses.
     * 

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setValidationErrors(java.util.Collection)} or {@link #withValidationErrors(java.util.Collection)} if you * want to override the existing values. *

* * @param validationErrors * A collection of validation error responses. * @return Returns a reference to this object so that method calls can be chained together. */ public UnprocessableEntityException withValidationErrors(ValidationError... validationErrors) { if (this.validationErrors == null) { setValidationErrors(new java.util.ArrayList(validationErrors.length)); } for (ValidationError ele : validationErrors) { this.validationErrors.add(ele); } return this; } /** * A collection of validation error responses. * * @param validationErrors * A collection of validation error responses. * @return Returns a reference to this object so that method calls can be chained together. */ public UnprocessableEntityException withValidationErrors(java.util.Collection validationErrors) { setValidationErrors(validationErrors); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy