Class HostComponent
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.security.entity.Artifact
-
- odata.msgraph.client.security.entity.HostComponent
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class HostComponent extends Artifact implements com.github.davidmoten.odata.client.ODataEntityType
Org.OData.Capabilities.V1.CountRestrictions
Countable = true
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.FilterRestrictions
Filterable = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.SelectRestrictions
Selectable = true
Org.OData.Capabilities.V1.SkipSupported
true
Org.OData.Capabilities.V1.TopSupported
true
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHostComponent.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringcategoryprotected OffsetDateTimefirstSeenDateTimeprotected OffsetDateTimelastSeenDateTimeprotected Stringnameprotected Stringversion-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHostComponent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HostComponent.BuilderbuilderHostComponent()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getCategory()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getFirstSeenDateTime()HostRequestgetHost()Optional<OffsetDateTime>getLastSeenDateTime()Optional<String>getName()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getVersion()StringodataTypeName()HostComponentpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)HostComponentput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()HostComponentwithCategory(String category)HostComponentwithFirstSeenDateTime(OffsetDateTime firstSeenDateTime)HostComponentwithLastSeenDateTime(OffsetDateTime lastSeenDateTime)HostComponentwithName(String name)HostComponentwithUnmappedField(String name, Object value)HostComponentwithVersion(String version)
-
-
-
Field Detail
-
category
protected String category
-
firstSeenDateTime
protected OffsetDateTime firstSeenDateTime
-
lastSeenDateTime
protected OffsetDateTime lastSeenDateTime
-
name
protected String name
-
version
protected String version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classArtifact
-
builderHostComponent
public static HostComponent.Builder builderHostComponent()
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 classArtifact
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classArtifact
-
withCategory
public HostComponent withCategory(String category)
-
getFirstSeenDateTime
public Optional<OffsetDateTime> getFirstSeenDateTime()
-
withFirstSeenDateTime
public HostComponent withFirstSeenDateTime(OffsetDateTime firstSeenDateTime)
-
getLastSeenDateTime
public Optional<OffsetDateTime> getLastSeenDateTime()
-
withLastSeenDateTime
public HostComponent withLastSeenDateTime(OffsetDateTime lastSeenDateTime)
-
withName
public HostComponent withName(String name)
-
withVersion
public HostComponent withVersion(String version)
-
withUnmappedField
public HostComponent withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classArtifact
-
getHost
public HostRequest getHost()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classArtifact
-
patch
public HostComponent patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public HostComponent put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-