Package microsoft.dynamics.crm.entity
Class Relationship
- java.lang.Object
-
- microsoft.dynamics.crm.entity.Crmbaseentity
-
- microsoft.dynamics.crm.entity.Relationship
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Relationship extends Crmbaseentity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelationship.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Integercomponentstateprotected UUIDentitykeyidprotected Stringnameprotected OffsetDateTimeoverwritetimeprotected UUIDrelationshipidprotected UUIDsolutionid-
Fields inherited from class microsoft.dynamics.crm.entity.Crmbaseentity
changedFields, contextPath, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRelationship()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Relationship.BuilderbuilderRelationship()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<Integer>getComponentstate()Optional<UUID>getEntitykeyid()Optional<String>getName()Optional<OffsetDateTime>getOverwritetime()RelationshipattributeCollectionRequestgetRelationship_relationshipattribute()Optional<UUID>getRelationshipid()Optional<UUID>getSolutionid()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()Relationshippatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Relationshipput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()RelationshipwithComponentstate(Integer componentstate)RelationshipwithEntitykeyid(UUID entitykeyid)RelationshipwithName(String name)RelationshipwithOverwritetime(OffsetDateTime overwritetime)RelationshipwithRelationshipid(UUID relationshipid)RelationshipwithSolutionid(UUID solutionid)RelationshipwithUnmappedField(String name, Object value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classCrmbaseentity
-
builderRelationship
public static Relationship.Builder builderRelationship()
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 classCrmbaseentity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classCrmbaseentity
-
withComponentstate
public Relationship withComponentstate(Integer componentstate)
-
withSolutionid
public Relationship withSolutionid(UUID solutionid)
-
withEntitykeyid
public Relationship withEntitykeyid(UUID entitykeyid)
-
getOverwritetime
public Optional<OffsetDateTime> getOverwritetime()
-
withOverwritetime
public Relationship withOverwritetime(OffsetDateTime overwritetime)
-
withRelationshipid
public Relationship withRelationshipid(UUID relationshipid)
-
withName
public Relationship withName(String name)
-
withUnmappedField
public Relationship withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classCrmbaseentity
-
getRelationship_relationshipattribute
public RelationshipattributeCollectionRequest getRelationship_relationshipattribute()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classCrmbaseentity
-
patch
public Relationship patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classCrmbaseentity- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public Relationship put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classCrmbaseentity- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classCrmbaseentity
-
-