Class DeploymentPolicies

    • Method Detail

      • failureHandlingPolicyAsString

        public final String failureHandlingPolicyAsString()

        The failure handling policy for the configuration deployment. This policy defines what to do if the deployment fails.

        Default: ROLLBACK

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

        Returns:
        The failure handling policy for the configuration deployment. This policy defines what to do if the deployment fails.

        Default: ROLLBACK

        See Also:
        DeploymentFailureHandlingPolicy
      • componentUpdatePolicy

        public final DeploymentComponentUpdatePolicy componentUpdatePolicy()

        The component update policy for the configuration deployment. This policy defines when it's safe to deploy the configuration to devices.

        Returns:
        The component update policy for the configuration deployment. This policy defines when it's safe to deploy the configuration to devices.
      • configurationValidationPolicy

        public final DeploymentConfigurationValidationPolicy configurationValidationPolicy()

        The configuration validation policy for the configuration deployment. This policy defines how long each component has to validate its configure updates.

        Returns:
        The configuration validation policy for the configuration deployment. This policy defines how long each component has to validate its configure updates.
      • 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)