Package microsoft.dynamics.crm.entity
Class BooleanOptionSetMetadata
- java.lang.Object
-
- microsoft.dynamics.crm.entity.Crmmodelbaseentity
-
- microsoft.dynamics.crm.entity.MetadataBase
-
- microsoft.dynamics.crm.entity.OptionSetMetadataBase
-
- microsoft.dynamics.crm.entity.BooleanOptionSetMetadata
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class BooleanOptionSetMetadata extends OptionSetMetadataBase implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBooleanOptionSetMetadata.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OptionMetadatafalseOptionprotected OptionMetadatatrueOption-
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 protectedBooleanOptionSetMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BooleanOptionSetMetadata.BuilderbuilderBooleanOptionSetMetadata()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<OptionMetadata>getFalseOption()Optional<OptionMetadata>getTrueOption()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()BooleanOptionSetMetadatapatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)BooleanOptionSetMetadataput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()BooleanOptionSetMetadatawithFalseOption(OptionMetadata falseOption)BooleanOptionSetMetadatawithTrueOption(OptionMetadata trueOption)BooleanOptionSetMetadatawithUnmappedField(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
-
trueOption
protected OptionMetadata trueOption
-
falseOption
protected OptionMetadata falseOption
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classOptionSetMetadataBase
-
builderBooleanOptionSetMetadata
public static BooleanOptionSetMetadata.Builder builderBooleanOptionSetMetadata()
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
-
getTrueOption
public Optional<OptionMetadata> getTrueOption()
-
withTrueOption
public BooleanOptionSetMetadata withTrueOption(OptionMetadata trueOption)
-
getFalseOption
public Optional<OptionMetadata> getFalseOption()
-
withFalseOption
public BooleanOptionSetMetadata withFalseOption(OptionMetadata falseOption)
-
withUnmappedField
public BooleanOptionSetMetadata 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 BooleanOptionSetMetadata 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 BooleanOptionSetMetadata 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
-
-