aws-lightsail-instance/src/main/java/software/amazon/lightsail/instance/Translator.java [175:189]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static Collection<AddOnRequest> translateAddOnsToSdk(List<AddOn> addOns) {
        if (addOns == null) {
            return null;
        }
        // Get only Enabled status AddOn. Only that we need to enable now.
        // If the AddOn status is not provided then its for enabling and if status starts with enable then it will be
        // enabled, enabling, enable so we need only them
        return addOns.stream()
                .filter(addon -> addon.getStatus() == null || addon.getStatus().toLowerCase().startsWith("enable"))
                .map(addOn -> AddOnRequest.builder().addOnType(addOn.getAddOnType())
                        .autoSnapshotAddOnRequest(
                                translateAutoSnapshotAddOnRequest(addOn.getAutoSnapshotAddOnRequest()))
                        .build())
                .collect(Collectors.toSet());
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-lightsail-disk/src/main/java/software/amazon/lightsail/disk/Translator.java [127:141]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static Collection<AddOnRequest> translateAddOnsToSdk(List<AddOn> addOns) {
        if (addOns == null) {
            return null;
        }
        // Get only Enabled status AddOn. Only that we need to enable now.
        // If the AddOn status is not provided then its for enabling and if status starts with enable then it will be
        // enabled, enabling, enable so we need only them
        return addOns.stream()
                .filter(addon -> addon.getStatus() == null || addon.getStatus().toLowerCase().startsWith("enable"))
                .map(addOn -> AddOnRequest.builder().addOnType(addOn.getAddOnType())
                        .autoSnapshotAddOnRequest(
                                translateAutoSnapshotAddOnRequest(addOn.getAutoSnapshotAddOnRequest()))
                        .build())
                .collect(Collectors.toSet());
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



