aws-events-connection/src/main/java/software/amazon/events/connection/Translator.java
static List<ResourceModel> translateFromListRequest(final ListConnectionsResponse awsResponse) {
        return streamOfOrEmpty(awsResponse.connections())
                .map(resource -> ResourceModel.builder()
                        .name(resource.name())
                        .build())
                .collect(Collectors.toList());
    }
/**
     * Translates resource objects from sdk into a resource model (primary identifier only)
     *
     * @param awsResponse the aws service describe resource response
     * @return list of resource models
     */
Translates resource objects from sdk into a resource model (primary identifier only)
@param awsResponse the aws service describe resource response
@return list of resource models
Translates resource objects from sdk into a resource model ( primary identifier only ) @param awsResponse the aws service describe resource response @return list of resource models
static List<ResourceModel> translateFromListRequest(final ListConnectionsResponse awsResponse) {
        return streamOfOrEmpty(awsResponse.connections())
                .map(resource -> ResourceModel.builder()
                        .name(resource.name())
                        .build())
                .collect(Collectors.toList());
    }
static List < ResourceModel > translateFromListRequest ( final ListConnectionsResponse awsResponse ) { return streamOfOrEmpty ( awsResponse . connections ( ) ) . map ( resource -> ResourceModel . builder ( ) . name ( resource . name ( ) ) . build ( ) ) . collect ( Collectors . toList ( ) ) ; }
Translates resource objects from sdk into a resource model (primary identifier only)
 @param awsResponse the aws service describe resource response
 @return list of resource models
Translates resource objects from sdk into a resource model ( primary identifier only ) @param awsResponse the aws service describe resource response @return list of resource models