public class MediaContentRatingUnitedKingdom extends Object implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
MediaContentRatingUnitedKingdom.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected com.github.davidmoten.odata.client.ContextPath |
contextPath |
protected RatingUnitedKingdomMoviesType |
movieRating |
protected String |
odataType |
protected RatingUnitedKingdomTelevisionType |
tvRating |
protected com.github.davidmoten.odata.client.internal.UnmappedFields |
unmappedFields |
| Modifier | Constructor and Description |
|---|---|
protected |
MediaContentRatingUnitedKingdom() |
| Modifier and Type | Method and Description |
|---|---|
static MediaContentRatingUnitedKingdom.Builder |
builder()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<RatingUnitedKingdomMoviesType> |
getMovieRating()
“Movies rating selected for United Kingdom”
|
Optional<RatingUnitedKingdomTelevisionType> |
getTvRating()
“TV rating selected for United Kingdom”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
MediaContentRatingUnitedKingdom |
withMovieRating(RatingUnitedKingdomMoviesType movieRating)
Returns an immutable copy of
this with just the movieRating
field changed. |
MediaContentRatingUnitedKingdom |
withTvRating(RatingUnitedKingdomTelevisionType tvRating)
Returns an immutable copy of
this with just the tvRating field
changed. |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected String odataType
protected RatingUnitedKingdomMoviesType movieRating
protected RatingUnitedKingdomTelevisionType tvRating
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic Optional<RatingUnitedKingdomMoviesType> getMovieRating()
public MediaContentRatingUnitedKingdom withMovieRating(RatingUnitedKingdomMoviesType movieRating)
this with just the movieRating
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Movies rating selected for United Kingdom”
movieRating - new value of movieRating field (as defined in service metadata)this with just the movieRating field changedpublic Optional<RatingUnitedKingdomTelevisionType> getTvRating()
public MediaContentRatingUnitedKingdom withTvRating(RatingUnitedKingdomTelevisionType tvRating)
this with just the tvRating field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“TV rating selected for United Kingdom”
tvRating - new value of tvRating field (as defined in service metadata)this with just the tvRating field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypepublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepublic static MediaContentRatingUnitedKingdom.Builder builder()
Copyright © 2018–2020. All rights reserved.