Class ValidationResult
- java.lang.Object
-
- odata.msgraph.client.beta.complex.ValidationResult
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class ValidationResult extends Object implements com.github.davidmoten.odata.client.ODataType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidationResult.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Stringmessageprotected StringodataTypeprotected StringruleNameprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFieldsprotected BooleanvalidationPassed
-
Constructor Summary
Constructors Modifier Constructor Description protectedValidationResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidationResult.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getMessage()Optional<String>getRuleName()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Boolean>getValidationPassed()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()ValidationResultwithMessage(String message)ValidationResultwithRuleName(String ruleName)ValidationResultwithUnmappedField(String name, String value)ValidationResultwithValidationPassed(Boolean validationPassed)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
message
protected String message
-
ruleName
protected String ruleName
-
validationPassed
protected Boolean validationPassed
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
withMessage
public ValidationResult withMessage(String message)
-
withRuleName
public ValidationResult withRuleName(String ruleName)
-
withValidationPassed
public ValidationResult withValidationPassed(Boolean validationPassed)
-
withUnmappedField
public ValidationResult withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static ValidationResult.Builder builder()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
-