public static AttributeKeyAndValue getAttributeKeyValueByName ( final ListObjectAttributesResult attributesResult , final String attributeName ) { return attributesResult . getAttributes ( ) . stream ( ) . filter ( a -> a . getKey ( ) . getName ( ) . equalsIgnoreCase ( attributeName ) ) . findFirst ( ) . orElse ( null ) ; }
Gets attribute key value by name .