/* * 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.ioteventsdata.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The new state, variable values, and timer settings of the detector (instance). *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DetectorStateDefinition implements Serializable, Cloneable, StructuredPojo { /** ** The name of the new state of the detector (instance). *
*/ private String stateName; /** ** The new values of the detector's variables. Any variable whose value isn't specified is cleared. *
*/ private java.util.List* The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout event * won't occur. *
*/ private java.util.List* The name of the new state of the detector (instance). *
* * @param stateName * The name of the new state of the detector (instance). */ public void setStateName(String stateName) { this.stateName = stateName; } /** ** The name of the new state of the detector (instance). *
* * @return The name of the new state of the detector (instance). */ public String getStateName() { return this.stateName; } /** ** The name of the new state of the detector (instance). *
* * @param stateName * The name of the new state of the detector (instance). * @return Returns a reference to this object so that method calls can be chained together. */ public DetectorStateDefinition withStateName(String stateName) { setStateName(stateName); return this; } /** ** The new values of the detector's variables. Any variable whose value isn't specified is cleared. *
* * @return The new values of the detector's variables. Any variable whose value isn't specified is cleared. */ public java.util.List* The new values of the detector's variables. Any variable whose value isn't specified is cleared. *
* * @param variables * The new values of the detector's variables. Any variable whose value isn't specified is cleared. */ public void setVariables(java.util.Collection* The new values of the detector's variables. Any variable whose value isn't specified is cleared. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVariables(java.util.Collection)} or {@link #withVariables(java.util.Collection)} if you want to * override the existing values. *
* * @param variables * The new values of the detector's variables. Any variable whose value isn't specified is cleared. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectorStateDefinition withVariables(VariableDefinition... variables) { if (this.variables == null) { setVariables(new java.util.ArrayList* The new values of the detector's variables. Any variable whose value isn't specified is cleared. *
* * @param variables * The new values of the detector's variables. Any variable whose value isn't specified is cleared. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectorStateDefinition withVariables(java.util.Collection* The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout event * won't occur. *
* * @return The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its * timeout event won't occur. */ public java.util.List* The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout event * won't occur. *
* * @param timers * The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout * event won't occur. */ public void setTimers(java.util.Collection* The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout event * won't occur. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTimers(java.util.Collection)} or {@link #withTimers(java.util.Collection)} if you want to override the * existing values. *
* * @param timers * The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout * event won't occur. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectorStateDefinition withTimers(TimerDefinition... timers) { if (this.timers == null) { setTimers(new java.util.ArrayList* The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout event * won't occur. *
* * @param timers * The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout * event won't occur. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectorStateDefinition withTimers(java.util.Collection