Package microsoft.dynamics.crm.entity
Class OptionSetMetadata
- java.lang.Object
-
- microsoft.dynamics.crm.entity.Crmmodelbaseentity
-
- microsoft.dynamics.crm.entity.MetadataBase
-
- microsoft.dynamics.crm.entity.OptionSetMetadataBase
-
- microsoft.dynamics.crm.entity.OptionSetMetadata
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class OptionSetMetadata extends OptionSetMetadataBase implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOptionSetMetadata.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<OptionMetadata>optionsprotected StringoptionsNextLinkprotected StringparentOptionSetName-
Fields inherited from class microsoft.dynamics.crm.entity.OptionSetMetadataBase
description, displayName, externalTypeName, introducedVersion, isCustomizable, isCustomOptionSet, isGlobal, isManaged, name, optionSetType
-
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 protectedOptionSetMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OptionSetMetadata.BuilderbuilderOptionSetMetadata()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()com.github.davidmoten.odata.client.CollectionPage<OptionMetadata>getOptions()com.github.davidmoten.odata.client.CollectionPage<OptionMetadata>getOptions(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<String>getParentOptionSetName()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()OptionSetMetadatapatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)OptionSetMetadataput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()OptionSetMetadatawithOptions(List<OptionMetadata> options)OptionSetMetadatawithParentOptionSetName(String parentOptionSetName)OptionSetMetadatawithUnmappedField(String name, String value)-
Methods inherited from class microsoft.dynamics.crm.entity.OptionSetMetadataBase
builderOptionSetMetadataBase, getDescription, getDisplayName, getExternalTypeName, getIntroducedVersion, getIsCustomizable, getIsCustomOptionSet, getIsGlobal, getIsManaged, getName, getOptionSetType, withDescription, withDisplayName, withExternalTypeName, withIntroducedVersion, withIsCustomizable, withIsCustomOptionSet, withIsGlobal, withIsManaged, withName, withOptionSetType
-
Methods inherited from class microsoft.dynamics.crm.entity.MetadataBase
getHasChanged, getMetadataId, withHasChanged, withMetadataId
-
-
-
-
Field Detail
-
options
protected List<OptionMetadata> options
-
optionsNextLink
protected String optionsNextLink
-
parentOptionSetName
protected String parentOptionSetName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classOptionSetMetadataBase
-
builderOptionSetMetadata
public static OptionSetMetadata.Builder builderOptionSetMetadata()
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 classOptionSetMetadataBase
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classOptionSetMetadataBase
-
getOptions
public com.github.davidmoten.odata.client.CollectionPage<OptionMetadata> getOptions()
-
withOptions
public OptionSetMetadata withOptions(List<OptionMetadata> options)
-
getOptions
public com.github.davidmoten.odata.client.CollectionPage<OptionMetadata> getOptions(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withParentOptionSetName
public OptionSetMetadata withParentOptionSetName(String parentOptionSetName)
-
withUnmappedField
public OptionSetMetadata withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classOptionSetMetadataBase
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classOptionSetMetadataBase
-
patch
public OptionSetMetadata patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classOptionSetMetadataBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public OptionSetMetadata put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classOptionSetMetadataBase- 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 classOptionSetMetadataBase
-
-