BodyModel Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. contentmoderator. models. BodyModel
- com.
public class BodyModel
The BodyModel model.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description value. |
Body |
metadata()
Get the metadata value. |
String |
name()
Get the name value. |
Body |
withDescription(String description)
Set the description value. |
Body |
withMetadata(BodyMetadata metadata)
Set the metadata value. |
Body |
withName(String name)
Set the name value. |
Method Details
description
public String description()
Get the description value.
Returns:
the description value
metadata
public BodyMetadata metadata()
Get the metadata value.
Returns:
the metadata value
name
public String name()
Get the name value.
Returns:
the name value
withDescription
public BodyModel withDescription(String description)
Set the description value.
Parameters:
description
- the description value to set
Returns:
the BodyModel object itself.
withMetadata
public BodyModel withMetadata(BodyMetadata metadata)
Set the metadata value.
Parameters:
metadata
- the metadata value to set
Returns:
the BodyModel object itself.
withName
public BodyModel withName(String name)
Set the name value.
Parameters:
name
- the name value to set
Returns:
the BodyModel object itself.