/* * 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.finspacedata.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* The structure with error messages. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ChangesetErrorInfo implements Serializable, Cloneable, StructuredPojo { /** *

* The text of the error message. *

*/ private String errorMessage; /** *

* The category of the error. *

* */ private String errorCategory; /** *

* The text of the error message. *

* * @param errorMessage * The text of the error message. */ public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } /** *

* The text of the error message. *

* * @return The text of the error message. */ public String getErrorMessage() { return this.errorMessage; } /** *

* The text of the error message. *

* * @param errorMessage * The text of the error message. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangesetErrorInfo withErrorMessage(String errorMessage) { setErrorMessage(errorMessage); return this; } /** *

* The category of the error. *

* * * @param errorCategory * The category of the error.

*