Class PolicySet

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

    public class PolicySet
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “A class containing the properties used for PolicySet.”
    • Field Detail

      • description

        protected String description
      • displayName

        protected String displayName
      • guidedDeploymentTags

        protected List<String> guidedDeploymentTags
      • guidedDeploymentTagsNextLink

        protected String guidedDeploymentTagsNextLink
      • roleScopeTags

        protected List<String> roleScopeTags
      • roleScopeTagsNextLink

        protected String roleScopeTagsNextLink
    • Constructor Detail

      • PolicySet

        protected PolicySet()
    • Method Detail

      • odataTypeName

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

        public static PolicySet.Builder builderPolicySet()
        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
      • getCreatedDateTime

        public Optional<OffsetDateTime> getCreatedDateTime()
        “Creation time of the PolicySet.”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public PolicySet withCreatedDateTime​(OffsetDateTime createdDateTime)
        Returns an immutable copy of this with just the createdDateTime 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.

        “Creation time of the PolicySet.”

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

        public Optional<String> getDescription()
        “Description of the PolicySet.”
        Returns:
        property description
      • withDescription

        public PolicySet withDescription​(String description)
        Returns an immutable copy of this with just the description 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.

        “Description of the PolicySet.”

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

        public Optional<String> getDisplayName()
        “DisplayName of the PolicySet.”
        Returns:
        property displayName
      • withDisplayName

        public PolicySet withDisplayName​(String displayName)
        Returns an immutable copy of this with just the displayName 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.

        “DisplayName of the PolicySet.”

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

        public Optional<ErrorCode> getErrorCode()
        “Error code if any occured.”
        Returns:
        property errorCode
      • withErrorCode

        public PolicySet withErrorCode​(ErrorCode 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.

        “Error code if any occured.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getGuidedDeploymentTags()
        “Tags of the guided deployment”
        Returns:
        property guidedDeploymentTags
      • withGuidedDeploymentTags

        public PolicySet withGuidedDeploymentTags​(List<String> guidedDeploymentTags)
        Returns an immutable copy of this with just the guidedDeploymentTags 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.

        “Tags of the guided deployment”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getGuidedDeploymentTags​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Tags of the guided deployment”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property guidedDeploymentTags
      • getLastModifiedDateTime

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “Last modified time of the PolicySet.”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public PolicySet withLastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        Returns an immutable copy of this with just the lastModifiedDateTime 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.

        “Last modified time of the PolicySet.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTags()
        “RoleScopeTags of the PolicySet”
        Returns:
        property roleScopeTags
      • withRoleScopeTags

        public PolicySet withRoleScopeTags​(List<String> roleScopeTags)
        Returns an immutable copy of this with just the roleScopeTags 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.

        “RoleScopeTags of the PolicySet”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTags​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “RoleScopeTags of the PolicySet”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property roleScopeTags
      • getStatus

        public Optional<PolicySetStatus> getStatus()
        “Validation/assignment status of the PolicySet.”
        Returns:
        property status
      • withStatus

        public PolicySet withStatus​(PolicySetStatus status)
        Returns an immutable copy of this with just the status 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.

        “Validation/assignment status of the PolicySet.”

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

        public PolicySetItemCollectionRequest getItems()
        “Items of the PolicySet with maximum count 100.”
        Returns:
        navigational property items
      • 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 PolicySet 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 PolicySet 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