Class LongTermPricingListEntry

    • Method Detail

      • longTermPricingId

        public final String longTermPricingId()

        The ID of the long-term pricing type for the device.

        Returns:
        The ID of the long-term pricing type for the device.
      • longTermPricingEndDate

        public final Instant longTermPricingEndDate()

        The end date the long-term pricing contract.

        Returns:
        The end date the long-term pricing contract.
      • longTermPricingStartDate

        public final Instant longTermPricingStartDate()

        The start date of the long-term pricing contract.

        Returns:
        The start date of the long-term pricing contract.
      • currentActiveJob

        public final String currentActiveJob()

        The current active jobs on the device the long-term pricing type.

        Returns:
        The current active jobs on the device the long-term pricing type.
      • replacementJob

        public final String replacementJob()

        A new device that replaces a device that is ordered with long-term pricing.

        Returns:
        A new device that replaces a device that is ordered with long-term pricing.
      • isLongTermPricingAutoRenew

        public final Boolean isLongTermPricingAutoRenew()

        If set to true, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.

        Returns:
        If set to true, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.
      • longTermPricingStatus

        public final String longTermPricingStatus()

        The status of the long-term pricing type.

        Returns:
        The status of the long-term pricing type.
      • snowballType

        public final SnowballType snowballType()

        The type of Snow Family devices associated with this long-term pricing job.

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

        Returns:
        The type of Snow Family devices associated with this long-term pricing job.
        See Also:
        SnowballType
      • snowballTypeAsString

        public final String snowballTypeAsString()

        The type of Snow Family devices associated with this long-term pricing job.

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

        Returns:
        The type of Snow Family devices associated with this long-term pricing job.
        See Also:
        SnowballType
      • hasJobIds

        public final boolean hasJobIds()
        For responses, this returns true if the service returned a value for the JobIds property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • jobIds

        public final List<String> jobIds()

        The IDs of the jobs that are associated with a long-term pricing type.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasJobIds() method.

        Returns:
        The IDs of the jobs that are associated with a long-term pricing type.
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)