Class SecurityBaselineSettingState

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class SecurityBaselineSettingState
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The security baseline compliance state of a setting for a device”
    • Constructor Detail

      • SecurityBaselineSettingState

        protected SecurityBaselineSettingState()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderSecurityBaselineSettingState

        public static SecurityBaselineSettingState.Builder builderSecurityBaselineSettingState()
        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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getContributingPolicies

        public com.github.davidmoten.odata.client.CollectionPage<SecurityBaselineContributingPolicy> getContributingPolicies()
        “The policies that contribute to this setting instance”
        Returns:
        property contributingPolicies
      • withContributingPolicies

        public SecurityBaselineSettingState withContributingPolicies​(List<SecurityBaselineContributingPolicy> contributingPolicies)
        Returns an immutable copy of this with just the contributingPolicies field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The policies that contribute to this setting instance”

        Parameters:
        contributingPolicies - new value of contributingPolicies field (as defined in service metadata)
        Returns:
        immutable copy of this with just the contributingPolicies field changed
      • getContributingPolicies

        public com.github.davidmoten.odata.client.CollectionPage<SecurityBaselineContributingPolicy> getContributingPolicies​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The policies that contribute to this setting instance”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property contributingPolicies
      • getErrorCode

        public Optional<String> getErrorCode()
        “The error code if the setting is in error state”
        Returns:
        property errorCode
      • withErrorCode

        public SecurityBaselineSettingState withErrorCode​(String errorCode)
        Returns an immutable copy of this with just the errorCode field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The error code if the setting is in error state”

        Parameters:
        errorCode - new value of errorCode field (as defined in service metadata)
        Returns:
        immutable copy of this with just the errorCode field changed
      • getSettingCategoryId

        public Optional<String> getSettingCategoryId()
        “The setting category id which this setting belongs to”
        Returns:
        property settingCategoryId
      • withSettingCategoryId

        public SecurityBaselineSettingState withSettingCategoryId​(String settingCategoryId)
        Returns an immutable copy of this with just the settingCategoryId field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The setting category id which this setting belongs to”

        Parameters:
        settingCategoryId - new value of settingCategoryId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the settingCategoryId field changed
      • getSettingCategoryName

        public Optional<String> getSettingCategoryName()
        “The setting category name which this setting belongs to”
        Returns:
        property settingCategoryName
      • withSettingCategoryName

        public SecurityBaselineSettingState withSettingCategoryName​(String settingCategoryName)
        Returns an immutable copy of this with just the settingCategoryName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The setting category name which this setting belongs to”

        Parameters:
        settingCategoryName - new value of settingCategoryName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the settingCategoryName field changed
      • getSettingId

        public Optional<String> getSettingId()
        “The setting id guid”
        Returns:
        property settingId
      • withSettingId

        public SecurityBaselineSettingState withSettingId​(String settingId)
        Returns an immutable copy of this with just the settingId field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The setting id guid”

        Parameters:
        settingId - new value of settingId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the settingId field changed
      • getSettingName

        public Optional<String> getSettingName()
        “The setting name that is being reported”
        Returns:
        property settingName
      • withSettingName

        public SecurityBaselineSettingState withSettingName​(String settingName)
        Returns an immutable copy of this with just the settingName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The setting name that is being reported”

        Parameters:
        settingName - new value of settingName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the settingName field changed
      • getSourcePolicies

        public com.github.davidmoten.odata.client.CollectionPage<SettingSource> getSourcePolicies()
        “The policies that contribute to this setting instance”
        Returns:
        property sourcePolicies
      • withSourcePolicies

        public SecurityBaselineSettingState withSourcePolicies​(List<SettingSource> sourcePolicies)
        Returns an immutable copy of this with just the sourcePolicies field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The policies that contribute to this setting instance”

        Parameters:
        sourcePolicies - new value of sourcePolicies field (as defined in service metadata)
        Returns:
        immutable copy of this with just the sourcePolicies field changed
      • getSourcePolicies

        public com.github.davidmoten.odata.client.CollectionPage<SettingSource> getSourcePolicies​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The policies that contribute to this setting instance”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property sourcePolicies
      • withState

        public SecurityBaselineSettingState withState​(SecurityBaselineComplianceState state)
        Returns an immutable copy of this with just the state field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The compliance state of the security baseline setting”

        Parameters:
        state - new value of state field (as defined in service metadata)
        Returns:
        immutable copy of this with just the state field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public SecurityBaselineSettingState patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public SecurityBaselineSettingState put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected