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

* Contains the result of the analysis. *

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

* The type of the analysis result. Analyses fall into the following types based on the validators used to generate * the analysis result: *

* *

* For more information, see Running detector * model analyses in the AWS IoT Events Developer Guide. *

*/ private String type; /** *

* The severity level of the analysis result. Based on the severity level, analysis results fall into three general * categories: *

* */ private String level; /** *

* Contains additional information about the analysis result. *

*/ private String message; /** *

* Contains one or more locations that you can use to locate the fields in your detector model that the analysis * result references. *

*/ private java.util.List locations; /** *

* The type of the analysis result. Analyses fall into the following types based on the validators used to generate * the analysis result: *

* *

* For more information, see Running detector * model analyses in the AWS IoT Events Developer Guide. *

* * @param type * The type of the analysis result. Analyses fall into the following types based on the validators used to * generate the analysis result:

* *

* For more information, see Running * detector model analyses in the AWS IoT Events Developer Guide. */ public void setType(String type) { this.type = type; } /** *

* The type of the analysis result. Analyses fall into the following types based on the validators used to generate * the analysis result: *

* *

* For more information, see Running detector * model analyses in the AWS IoT Events Developer Guide. *

* * @return The type of the analysis result. Analyses fall into the following types based on the validators used to * generate the analysis result:

* *

* For more information, see Running * detector model analyses in the AWS IoT Events Developer Guide. */ public String getType() { return this.type; } /** *

* The type of the analysis result. Analyses fall into the following types based on the validators used to generate * the analysis result: *

* *

* For more information, see Running detector * model analyses in the AWS IoT Events Developer Guide. *

* * @param type * The type of the analysis result. Analyses fall into the following types based on the validators used to * generate the analysis result:

* *

* For more information, see Running * detector model analyses in the AWS IoT Events Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisResult withType(String type) { setType(type); return this; } /** *

* The severity level of the analysis result. Based on the severity level, analysis results fall into three general * categories: *

* * * @param level * The severity level of the analysis result. Based on the severity level, analysis results fall into three * general categories:

*