Package odata.msgraph.client.entity
Class BrowserSharedCookie
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.BrowserSharedCookie
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class BrowserSharedCookie extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBrowserSharedCookie.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringcommentprotected OffsetDateTimecreatedDateTimeprotected OffsetDateTimedeletedDateTimeprotected StringdisplayNameprotected List<BrowserSharedCookieHistory>historyprotected StringhistoryNextLinkprotected BooleanhostOnlyprotected StringhostOrDomainprotected IdentitySetlastModifiedByprotected OffsetDateTimelastModifiedDateTimeprotected Stringpathprotected BrowserSharedCookieSourceEnvironmentsourceEnvironmentprotected BrowserSharedCookieStatusstatus-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBrowserSharedCookie()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BrowserSharedCookie.BuilderbuilderBrowserSharedCookie()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getComment()“The comment of the cookie”Optional<OffsetDateTime>getCreatedDateTime()“The datetime that the admin created the cookie”Optional<OffsetDateTime>getDeletedDateTime()“The datetime that the admin deleted the cookie”Optional<String>getDisplayName()“The name of the cookie”com.github.davidmoten.odata.client.CollectionPage<BrowserSharedCookieHistory>getHistory()“The history of the cookie”com.github.davidmoten.odata.client.CollectionPage<BrowserSharedCookieHistory>getHistory(com.github.davidmoten.odata.client.HttpRequestOptions options)“The history of the cookie”Optional<Boolean>getHostOnly()“Boolean attribute that determines whether a cookie is a host-only or domain cookie”Optional<String>getHostOrDomain()“The URL of the cookie”Optional<IdentitySet>getLastModifiedBy()“The identity of the admin who last updated the cookie”Optional<OffsetDateTime>getLastModifiedDateTime()“The datetime that the admin last updated the cookie”Optional<String>getPath()“The path of the cookie”Optional<BrowserSharedCookieSourceEnvironment>getSourceEnvironment()“Specifies how the cookies are shared between Microsoft Edge and Internet Explorer”Optional<BrowserSharedCookieStatus>getStatus()“The status of the cookie”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()BrowserSharedCookiepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)BrowserSharedCookieput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()BrowserSharedCookiewithComment(String comment)Returns an immutable copy ofthiswith just thecommentfield changed.BrowserSharedCookiewithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.BrowserSharedCookiewithDeletedDateTime(OffsetDateTime deletedDateTime)Returns an immutable copy ofthiswith just thedeletedDateTimefield changed.BrowserSharedCookiewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.BrowserSharedCookiewithHistory(List<BrowserSharedCookieHistory> history)Returns an immutable copy ofthiswith just thehistoryfield changed.BrowserSharedCookiewithHostOnly(Boolean hostOnly)Returns an immutable copy ofthiswith just thehostOnlyfield changed.BrowserSharedCookiewithHostOrDomain(String hostOrDomain)Returns an immutable copy ofthiswith just thehostOrDomainfield changed.BrowserSharedCookiewithLastModifiedBy(IdentitySet lastModifiedBy)Returns an immutable copy ofthiswith just thelastModifiedByfield changed.BrowserSharedCookiewithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.BrowserSharedCookiewithPath(String path)Returns an immutable copy ofthiswith just thepathfield changed.BrowserSharedCookiewithSourceEnvironment(BrowserSharedCookieSourceEnvironment sourceEnvironment)Returns an immutable copy ofthiswith just thesourceEnvironmentfield changed.BrowserSharedCookiewithStatus(BrowserSharedCookieStatus status)Returns an immutable copy ofthiswith just thestatusfield changed.BrowserSharedCookiewithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
comment
protected String comment
-
createdDateTime
protected OffsetDateTime createdDateTime
-
deletedDateTime
protected OffsetDateTime deletedDateTime
-
displayName
protected String displayName
-
history
protected List<BrowserSharedCookieHistory> history
-
historyNextLink
protected String historyNextLink
-
hostOnly
protected Boolean hostOnly
-
hostOrDomain
protected String hostOrDomain
-
lastModifiedBy
protected IdentitySet lastModifiedBy
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
path
protected String path
-
sourceEnvironment
protected BrowserSharedCookieSourceEnvironment sourceEnvironment
-
status
protected BrowserSharedCookieStatus status
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderBrowserSharedCookie
public static BrowserSharedCookie.Builder builderBrowserSharedCookie()
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
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getComment
public Optional<String> getComment()
“The comment of the cookie”- Returns:
- property comment
-
withComment
public BrowserSharedCookie withComment(String comment)
Returns an immutable copy ofthiswith just thecommentfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The comment of the cookie”
- Parameters:
comment- new value ofcommentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecommentfield changed
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“The datetime that the admin created the cookie”- Returns:
- property createdDateTime
-
withCreatedDateTime
public BrowserSharedCookie withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The datetime that the admin created the cookie”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDeletedDateTime
public Optional<OffsetDateTime> getDeletedDateTime()
“The datetime that the admin deleted the cookie”- Returns:
- property deletedDateTime
-
withDeletedDateTime
public BrowserSharedCookie withDeletedDateTime(OffsetDateTime deletedDateTime)
Returns an immutable copy ofthiswith just thedeletedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The datetime that the admin deleted the cookie”
- Parameters:
deletedDateTime- new value ofdeletedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeletedDateTimefield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The name of the cookie”- Returns:
- property displayName
-
withDisplayName
public BrowserSharedCookie withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The name of the cookie”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getHistory
public com.github.davidmoten.odata.client.CollectionPage<BrowserSharedCookieHistory> getHistory()
“The history of the cookie”- Returns:
- property history
-
withHistory
public BrowserSharedCookie withHistory(List<BrowserSharedCookieHistory> history)
Returns an immutable copy ofthiswith just thehistoryfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The history of the cookie”
- Parameters:
history- new value ofhistoryfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thehistoryfield changed
-
getHistory
public com.github.davidmoten.odata.client.CollectionPage<BrowserSharedCookieHistory> getHistory(com.github.davidmoten.odata.client.HttpRequestOptions options)
“The history of the cookie”- Parameters:
options- specify connect and read timeouts- Returns:
- property history
-
getHostOnly
public Optional<Boolean> getHostOnly()
“Boolean attribute that determines whether a cookie is a host-only or domain cookie”- Returns:
- property hostOnly
-
withHostOnly
public BrowserSharedCookie withHostOnly(Boolean hostOnly)
Returns an immutable copy ofthiswith just thehostOnlyfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Boolean attribute that determines whether a cookie is a host-only or domain cookie”
- Parameters:
hostOnly- new value ofhostOnlyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thehostOnlyfield changed
-
getHostOrDomain
public Optional<String> getHostOrDomain()
“The URL of the cookie”- Returns:
- property hostOrDomain
-
withHostOrDomain
public BrowserSharedCookie withHostOrDomain(String hostOrDomain)
Returns an immutable copy ofthiswith just thehostOrDomainfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The URL of the cookie”
- Parameters:
hostOrDomain- new value ofhostOrDomainfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thehostOrDomainfield changed
-
getLastModifiedBy
public Optional<IdentitySet> getLastModifiedBy()
“The identity of the admin who last updated the cookie”- Returns:
- property lastModifiedBy
-
withLastModifiedBy
public BrowserSharedCookie withLastModifiedBy(IdentitySet lastModifiedBy)
Returns an immutable copy ofthiswith just thelastModifiedByfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The identity of the admin who last updated the cookie”
- Parameters:
lastModifiedBy- new value oflastModifiedByfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedByfield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“The datetime that the admin last updated the cookie”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public BrowserSharedCookie withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The datetime that the admin last updated the cookie”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
withPath
public BrowserSharedCookie withPath(String path)
Returns an immutable copy ofthiswith just thepathfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The path of the cookie”
- Parameters:
path- new value ofpathfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepathfield changed
-
getSourceEnvironment
public Optional<BrowserSharedCookieSourceEnvironment> getSourceEnvironment()
“Specifies how the cookies are shared between Microsoft Edge and Internet Explorer”- Returns:
- property sourceEnvironment
-
withSourceEnvironment
public BrowserSharedCookie withSourceEnvironment(BrowserSharedCookieSourceEnvironment sourceEnvironment)
Returns an immutable copy ofthiswith just thesourceEnvironmentfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Specifies how the cookies are shared between Microsoft Edge and Internet Explorer”
- Parameters:
sourceEnvironment- new value ofsourceEnvironmentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesourceEnvironmentfield changed
-
getStatus
public Optional<BrowserSharedCookieStatus> getStatus()
“The status of the cookie”- Returns:
- property status
-
withStatus
public BrowserSharedCookie withStatus(BrowserSharedCookieStatus status)
Returns an immutable copy ofthiswith just thestatusfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The status of the cookie”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
withUnmappedField
public BrowserSharedCookie withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public BrowserSharedCookie patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public BrowserSharedCookie put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-