Package odata.msgraph.client.beta.entity
Class SecurityBaselineState
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.SecurityBaselineState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class SecurityBaselineState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Security baseline state for a device.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSecurityBaselineState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdisplayNameprotected StringsecurityBaselineTemplateIdprotected SecurityBaselineComplianceStatestateprotected StringuserPrincipalName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSecurityBaselineState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityBaselineState.BuilderbuilderSecurityBaselineState()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<String>getDisplayName()“The display name of the security baseline”Optional<String>getSecurityBaselineTemplateId()“The security baseline template id”SecurityBaselineSettingStateCollectionRequestgetSettingStates()“The security baseline state for different settings for a device”Optional<SecurityBaselineComplianceState>getState()“Security baseline compliance state”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserPrincipalName()“User Principal Name”StringodataTypeName()SecurityBaselineStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)SecurityBaselineStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()SecurityBaselineStatewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.SecurityBaselineStatewithSecurityBaselineTemplateId(String securityBaselineTemplateId)Returns an immutable copy ofthiswith just thesecurityBaselineTemplateIdfield changed.SecurityBaselineStatewithState(SecurityBaselineComplianceState state)Returns an immutable copy ofthiswith just thestatefield changed.SecurityBaselineStatewithUnmappedField(String name, String value)SecurityBaselineStatewithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.
-
-
-
Field Detail
-
displayName
protected String displayName
-
securityBaselineTemplateId
protected String securityBaselineTemplateId
-
state
protected SecurityBaselineComplianceState state
-
userPrincipalName
protected String userPrincipalName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderSecurityBaselineState
public static SecurityBaselineState.Builder builderSecurityBaselineState()
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 classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getDisplayName
public Optional<String> getDisplayName()
“The display name of the security baseline”- Returns:
- property displayName
-
withDisplayName
public SecurityBaselineState withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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 display name of the security baseline”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getSecurityBaselineTemplateId
public Optional<String> getSecurityBaselineTemplateId()
“The security baseline template id”- Returns:
- property securityBaselineTemplateId
-
withSecurityBaselineTemplateId
public SecurityBaselineState withSecurityBaselineTemplateId(String securityBaselineTemplateId)
Returns an immutable copy ofthiswith just thesecurityBaselineTemplateIdfield 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 security baseline template id”
- Parameters:
securityBaselineTemplateId- new value ofsecurityBaselineTemplateIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesecurityBaselineTemplateIdfield changed
-
getState
public Optional<SecurityBaselineComplianceState> getState()
“Security baseline compliance state”- Returns:
- property state
-
withState
public SecurityBaselineState withState(SecurityBaselineComplianceState state)
Returns an immutable copy ofthiswith just thestatefield 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.“Security baseline compliance state”
- Parameters:
state- new value ofstatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatefield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“User Principal Name”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public SecurityBaselineState withUserPrincipalName(String userPrincipalName)
Returns an immutable copy ofthiswith just theuserPrincipalNamefield 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.“User Principal Name”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
withUnmappedField
public SecurityBaselineState withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getSettingStates
public SecurityBaselineSettingStateCollectionRequest getSettingStates()
“The security baseline state for different settings for a device”- Returns:
- navigational property settingStates
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public SecurityBaselineState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public SecurityBaselineState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-