class StackRequestToCreateAWSClusterRequestConverter implements StackRequestToCliRequestConverter {

    @Override
    public CreateAWSClusterRequest convert(StackV4Request source) {
        CreateAWSClusterRequest request = new CreateAWSClusterRequest();
        request.setClusterName(source.getName());
        request.setClusterTemplateName(source.getCluster().getBlueprintName());
        request.setEnvironmentName(getEnvironmentName(source.getEnvironmentCrn()));
        request.setImage(convertImageRequest(source.getImage()));
        request.setInstanceGroups(convertInstanceGroups(source.getInstanceGroups()));
        request.setSubnetId(source.getNetwork().getAws().getSubnetId());
        request.setTags(getIfNotNull(source.getTags(), this::getTags));
        return request;
    }

}