Package odata.msgraph.client.complex
Class Win32LobAppProductCodeRule
- java.lang.Object
-
- odata.msgraph.client.complex.Win32LobAppRule
-
- odata.msgraph.client.complex.Win32LobAppProductCodeRule
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class Win32LobAppProductCodeRule extends Win32LobAppRule implements com.github.davidmoten.odata.client.ODataType
“A complex type to store the product code and version rule data for a Win32 LOB app. This rule is not supported as a requirement rule.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWin32LobAppProductCodeRule.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringproductCodeprotected StringproductVersionprotected Win32LobAppRuleOperatorproductVersionOperator-
Fields inherited from class odata.msgraph.client.complex.Win32LobAppRule
contextPath, odataType, ruleType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWin32LobAppProductCodeRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Win32LobAppProductCodeRule.BuilderbuilderWin32LobAppProductCodeRule()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getProductCode()“The product code of the app.”Optional<String>getProductVersion()“The product version comparison value.”Optional<Win32LobAppRuleOperator>getProductVersionOperator()“The product version comparison operator.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()Win32LobAppProductCodeRulewithProductCode(String productCode)Returns an immutable copy ofthiswith just theproductCodefield changed.Win32LobAppProductCodeRulewithProductVersion(String productVersion)Returns an immutable copy ofthiswith just theproductVersionfield changed.Win32LobAppProductCodeRulewithProductVersionOperator(Win32LobAppRuleOperator productVersionOperator)Returns an immutable copy ofthiswith just theproductVersionOperatorfield changed.Win32LobAppProductCodeRulewithUnmappedField(String name, Object value)-
Methods inherited from class odata.msgraph.client.complex.Win32LobAppRule
getRuleType, withRuleType
-
-
-
-
Field Detail
-
productCode
protected String productCode
-
productVersion
protected String productVersion
-
productVersionOperator
protected Win32LobAppRuleOperator productVersionOperator
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classWin32LobAppRule
-
getProductCode
public Optional<String> getProductCode()
“The product code of the app.”- Returns:
- property productCode
-
withProductCode
public Win32LobAppProductCodeRule withProductCode(String productCode)
Returns an immutable copy ofthiswith just theproductCodefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The product code of the app.”
- Parameters:
productCode- new value ofproductCodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theproductCodefield changed
-
getProductVersion
public Optional<String> getProductVersion()
“The product version comparison value.”- Returns:
- property productVersion
-
withProductVersion
public Win32LobAppProductCodeRule withProductVersion(String productVersion)
Returns an immutable copy ofthiswith just theproductVersionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The product version comparison value.”
- Parameters:
productVersion- new value ofproductVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theproductVersionfield changed
-
getProductVersionOperator
public Optional<Win32LobAppRuleOperator> getProductVersionOperator()
“The product version comparison operator.”- Returns:
- property productVersionOperator
-
withProductVersionOperator
public Win32LobAppProductCodeRule withProductVersionOperator(Win32LobAppRuleOperator productVersionOperator)
Returns an immutable copy ofthiswith just theproductVersionOperatorfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The product version comparison operator.”
- Parameters:
productVersionOperator- new value ofproductVersionOperatorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theproductVersionOperatorfield changed
-
withUnmappedField
public Win32LobAppProductCodeRule withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classWin32LobAppRule
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classWin32LobAppRule
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classWin32LobAppRule
-
builderWin32LobAppProductCodeRule
public static Win32LobAppProductCodeRule.Builder builderWin32LobAppProductCodeRule()
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
-
toString
public String toString()
- Overrides:
toStringin classWin32LobAppRule
-
-