Class ConditionBasedCollectionScheme

java.lang.Object
software.amazon.awssdk.services.iotfleetwise.model.ConditionBasedCollectionScheme
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ConditionBasedCollectionScheme.Builder,ConditionBasedCollectionScheme>

@Generated("software.amazon.awssdk:codegen") public final class ConditionBasedCollectionScheme extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ConditionBasedCollectionScheme.Builder,ConditionBasedCollectionScheme>

Information about a collection scheme that uses a simple logical expression to recognize what data to collect.

See Also:
  • Method Details

    • expression

      public final String expression()

      The logical expression used to recognize what data to collect. For example, $variable.`Vehicle.OutsideAirTemperature` >= 105.0.

      Returns:
      The logical expression used to recognize what data to collect. For example, $variable.`Vehicle.OutsideAirTemperature` >= 105.0.
    • minimumTriggerIntervalMs

      public final Long minimumTriggerIntervalMs()

      The minimum duration of time between two triggering events to collect data, in milliseconds.

      If a signal changes often, you might want to collect data at a slower rate.

      Returns:
      The minimum duration of time between two triggering events to collect data, in milliseconds.

      If a signal changes often, you might want to collect data at a slower rate.

    • triggerMode

      public final TriggerMode triggerMode()

      Whether to collect data for all triggering events (ALWAYS). Specify (RISING_EDGE), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.

      If the service returns an enum value that is not available in the current SDK version, triggerMode will return TriggerMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from triggerModeAsString().

      Returns:
      Whether to collect data for all triggering events (ALWAYS). Specify ( RISING_EDGE), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.
      See Also:
    • triggerModeAsString

      public final String triggerModeAsString()

      Whether to collect data for all triggering events (ALWAYS). Specify (RISING_EDGE), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.

      If the service returns an enum value that is not available in the current SDK version, triggerMode will return TriggerMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from triggerModeAsString().

      Returns:
      Whether to collect data for all triggering events (ALWAYS). Specify ( RISING_EDGE), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.
      See Also:
    • conditionLanguageVersion

      public final Integer conditionLanguageVersion()

      Specifies the version of the conditional expression language.

      Returns:
      Specifies the version of the conditional expression language.
    • toBuilder

      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ConditionBasedCollectionScheme.Builder,ConditionBasedCollectionScheme>
      Returns:
      a builder for type T
    • builder

      public static ConditionBasedCollectionScheme.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ConditionBasedCollectionScheme.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.