java.lang.Object
org.springframework.boot.configurationmetadata.Deprecation
All Implemented Interfaces:
Serializable

public class Deprecation extends Object implements Serializable
Indicate that a property is deprecated. Provide additional information about the deprecation.
Since:
1.3.0
See Also:
  • Constructor Details

    • Deprecation

      public Deprecation()
  • Method Details

    • getLevel

      public Deprecation.Level getLevel()
      Define the Deprecation.Level of deprecation.
      Returns:
      the deprecation level
    • setLevel

      public void setLevel(Deprecation.Level level)
    • getReason

      public String getReason()
      A reason why the related property is deprecated, if any. Can be multi-lines.
      Returns:
      the deprecation reason
      See Also:
    • setReason

      public void setReason(String reason)
    • getShortReason

      public String getShortReason()
      A single-line, single-sentence reason why the related property is deprecated, if any.
      Returns:
      the short deprecation reason
      See Also:
    • setShortReason

      public void setShortReason(String shortReason)
    • getReplacement

      public String getReplacement()
      The full name of the property that replaces the related deprecated property, if any.
      Returns:
      the replacement property name
    • setReplacement

      public void setReplacement(String replacement)
    • toString

      public String toString()
      Overrides:
      toString in class Object