Class UpdateRuleRequest

    • Method Detail

      • identifier

        public final String identifier()

        The unique ID of the retention rule.

        Returns:
        The unique ID of the retention rule.
      • retentionPeriod

        public final RetentionPeriod retentionPeriod()

        Information about the retention period for which the retention rule is to retain resources.

        Returns:
        Information about the retention period for which the retention rule is to retain resources.
      • description

        public final String description()

        The retention rule description.

        Returns:
        The retention rule description.
      • resourceType

        public final ResourceType resourceType()

        This parameter is currently not supported. You can't update a retention rule's resource type after creation.

        If the service returns an enum value that is not available in the current SDK version, resourceType will return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from resourceTypeAsString().

        Returns:

        This parameter is currently not supported. You can't update a retention rule's resource type after creation.

        See Also:
        ResourceType
      • resourceTypeAsString

        public final String resourceTypeAsString()

        This parameter is currently not supported. You can't update a retention rule's resource type after creation.

        If the service returns an enum value that is not available in the current SDK version, resourceType will return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from resourceTypeAsString().

        Returns:

        This parameter is currently not supported. You can't update a retention rule's resource type after creation.

        See Also:
        ResourceType
      • hasResourceTags

        public final boolean hasResourceTags()
        For responses, this returns true if the service returned a value for the ResourceTags property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • resourceTags

        public final List<ResourceTag> resourceTags()

        Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.

        You can add the same tag key and value pair to a maximum or five retention rules.

        To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasResourceTags() method.

        Returns:
        Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.

        You can add the same tag key and value pair to a maximum or five retention rules.

        To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.

      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object