c
io.k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1
ValidationRule
Companion object ValidationRule
final case class ValidationRule(rule: String, message: Option[String] = None, messageExpression: Option[String] = None) extends Product with Serializable
ValidationRule describes a validation rule written in the CEL expression language.
- Source
- ValidationRule.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ValidationRule
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapMessage(f: (String) ⇒ String): ValidationRule
if message has a value, transforms to the result of function
-
def
mapMessageExpression(f: (String) ⇒ String): ValidationRule
if messageExpression has a value, transforms to the result of function
-
def
mapRule(f: (String) ⇒ String): ValidationRule
transforms rule to result of function
- val message: Option[String]
- val messageExpression: Option[String]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val rule: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withMessage(value: String): ValidationRule
Returns a new data with message set to new value
-
def
withMessageExpression(value: String): ValidationRule
Returns a new data with messageExpression set to new value
-
def
withRule(value: String): ValidationRule
Returns a new data with rule set to new value