Package microsoft.dynamics.crm.entity
Class OptionSetMetadataBase
- java.lang.Object
-
- microsoft.dynamics.crm.entity.Crmmodelbaseentity
-
- microsoft.dynamics.crm.entity.MetadataBase
-
- microsoft.dynamics.crm.entity.OptionSetMetadataBase
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
BooleanOptionSetMetadata,OptionSetMetadata
public class OptionSetMetadataBase extends MetadataBase implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOptionSetMetadataBase.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Labeldescriptionprotected LabeldisplayNameprotected StringexternalTypeNameprotected StringintroducedVersionprotected BooleanManagedPropertyisCustomizableprotected BooleanisCustomOptionSetprotected BooleanisGlobalprotected BooleanisManagedprotected Stringnameprotected OptionSetTypeoptionSetType-
Fields inherited from class microsoft.dynamics.crm.entity.MetadataBase
hasChanged, metadataId
-
Fields inherited from class microsoft.dynamics.crm.entity.Crmmodelbaseentity
changedFields, contextPath, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOptionSetMetadataBase()
-
Method Summary
-
Methods inherited from class microsoft.dynamics.crm.entity.MetadataBase
getHasChanged, getMetadataId, withHasChanged, withMetadataId
-
-
-
-
Field Detail
-
description
protected Label description
-
displayName
protected Label displayName
-
isCustomOptionSet
protected Boolean isCustomOptionSet
-
isGlobal
protected Boolean isGlobal
-
isManaged
protected Boolean isManaged
-
isCustomizable
protected BooleanManagedProperty isCustomizable
-
name
protected String name
-
externalTypeName
protected String externalTypeName
-
optionSetType
protected OptionSetType optionSetType
-
introducedVersion
protected String introducedVersion
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classMetadataBase
-
builderOptionSetMetadataBase
public static OptionSetMetadataBase.Builder builderOptionSetMetadataBase()
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 classMetadataBase
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classMetadataBase
-
withDescription
public OptionSetMetadataBase withDescription(Label description)
-
withDisplayName
public OptionSetMetadataBase withDisplayName(Label displayName)
-
withIsCustomOptionSet
public OptionSetMetadataBase withIsCustomOptionSet(Boolean isCustomOptionSet)
-
withIsGlobal
public OptionSetMetadataBase withIsGlobal(Boolean isGlobal)
-
withIsManaged
public OptionSetMetadataBase withIsManaged(Boolean isManaged)
-
getIsCustomizable
public Optional<BooleanManagedProperty> getIsCustomizable()
-
withIsCustomizable
public OptionSetMetadataBase withIsCustomizable(BooleanManagedProperty isCustomizable)
-
withName
public OptionSetMetadataBase withName(String name)
-
withExternalTypeName
public OptionSetMetadataBase withExternalTypeName(String externalTypeName)
-
getOptionSetType
public Optional<OptionSetType> getOptionSetType()
-
withOptionSetType
public OptionSetMetadataBase withOptionSetType(OptionSetType optionSetType)
-
withIntroducedVersion
public OptionSetMetadataBase withIntroducedVersion(String introducedVersion)
-
withUnmappedField
public OptionSetMetadataBase withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classMetadataBase
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classMetadataBase
-
patch
public OptionSetMetadataBase patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classMetadataBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public OptionSetMetadataBase put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classMetadataBase- 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 classMetadataBase
-
-