aws-events-apidestination/src/main/java/software/amazon/events/apidestination/Translator.java
static List<ResourceModel> translateFromList(final ListApiDestinationsResponse awsResponse) {
    return streamOfOrEmpty(awsResponse.apiDestinations())
            .map(resource -> ResourceModel.builder()
                    .name(resource.name())
                    .connectionArn(resource.connectionArn())
                    .invocationRateLimitPerSecond(resource.invocationRateLimitPerSecond())
                    .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> translateFromList(final ListApiDestinationsResponse awsResponse) {
    return streamOfOrEmpty(awsResponse.apiDestinations())
            .map(resource -> ResourceModel.builder()
                    .name(resource.name())
                    .connectionArn(resource.connectionArn())
                    .invocationRateLimitPerSecond(resource.invocationRateLimitPerSecond())
                    .build())
            .collect(Collectors.toList());
  }
static List < ResourceModel > translateFromList ( final ListApiDestinationsResponse awsResponse ) { return streamOfOrEmpty ( awsResponse . apiDestinations ( ) ) . map ( resource -> ResourceModel . builder ( ) . name ( resource . name ( ) ) . connectionArn ( resource . connectionArn ( ) ) . invocationRateLimitPerSecond ( resource . invocationRateLimitPerSecond ( ) ) . 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