ValidationRule

io.k8s.apiextensions_apiserver.pkg.apis.apiextensions.v1.ValidationRule
See theValidationRule companion object
final case class ValidationRule(rule: String, fieldPath: Option[String], reason: Option[String], messageExpression: Option[String], message: Option[String], optionalOldSelf: Option[Boolean])

ValidationRule describes a validation rule written in the CEL expression language.

Attributes

Companion
object
Source
ValidationRule.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def mapFieldPath(f: String => String): ValidationRule

if fieldPath has a value, transforms to the result of function

if fieldPath has a value, transforms to the result of function

Attributes

Source
ValidationRule.scala
def mapMessage(f: String => String): ValidationRule

if message has a value, transforms to the result of function

if message has a value, transforms to the result of function

Attributes

Source
ValidationRule.scala
def mapMessageExpression(f: String => String): ValidationRule

if messageExpression has a value, transforms to the result of function

if messageExpression has a value, transforms to the result of function

Attributes

Source
ValidationRule.scala
def mapOptionalOldSelf(f: Boolean => Boolean): ValidationRule

if optionalOldSelf has a value, transforms to the result of function

if optionalOldSelf has a value, transforms to the result of function

Attributes

Source
ValidationRule.scala
def mapReason(f: String => String): ValidationRule

if reason has a value, transforms to the result of function

if reason has a value, transforms to the result of function

Attributes

Source
ValidationRule.scala
def mapRule(f: String => String): ValidationRule

transforms rule to result of function

transforms rule to result of function

Attributes

Source
ValidationRule.scala
def withFieldPath(value: String): ValidationRule

Returns a new data with fieldPath set to new value

Returns a new data with fieldPath set to new value

Attributes

Source
ValidationRule.scala
def withMessage(value: String): ValidationRule

Returns a new data with message set to new value

Returns a new data with message set to new value

Attributes

Source
ValidationRule.scala

Returns a new data with messageExpression set to new value

Returns a new data with messageExpression set to new value

Attributes

Source
ValidationRule.scala
def withOptionalOldSelf(value: Boolean): ValidationRule

Returns a new data with optionalOldSelf set to new value

Returns a new data with optionalOldSelf set to new value

Attributes

Source
ValidationRule.scala
def withReason(value: String): ValidationRule

Returns a new data with reason set to new value

Returns a new data with reason set to new value

Attributes

Source
ValidationRule.scala
def withRule(value: String): ValidationRule

Returns a new data with rule set to new value

Returns a new data with rule set to new value

Attributes

Source
ValidationRule.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product