Class AccessPolicySummary

    • Method Detail

      • id

        public final String id()

        The ID of the access policy.

        Returns:
        The ID of the access policy.
      • identity

        public final Identity identity()

        The identity (an IAM Identity Center user, an IAM Identity Center group, or an IAM user).

        Returns:
        The identity (an IAM Identity Center user, an IAM Identity Center group, or an IAM user).
      • resource

        public final Resource resource()

        The IoT SiteWise Monitor resource (a portal or project).

        Returns:
        The IoT SiteWise Monitor resource (a portal or project).
      • permission

        public final Permission permission()

        The permissions for the access policy. Note that a project ADMINISTRATOR is also known as a project owner.

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

        Returns:
        The permissions for the access policy. Note that a project ADMINISTRATOR is also known as a project owner.
        See Also:
        Permission
      • permissionAsString

        public final String permissionAsString()

        The permissions for the access policy. Note that a project ADMINISTRATOR is also known as a project owner.

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

        Returns:
        The permissions for the access policy. Note that a project ADMINISTRATOR is also known as a project owner.
        See Also:
        Permission
      • creationDate

        public final Instant creationDate()

        The date the access policy was created, in Unix epoch time.

        Returns:
        The date the access policy was created, in Unix epoch time.
      • lastUpdateDate

        public final Instant lastUpdateDate()

        The date the access policy was last updated, in Unix epoch time.

        Returns:
        The date the access policy was last updated, in Unix epoch time.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)